#!/usr/bin/env python
__license__ = 'GPL v3'
__author__ = 'Lorenzo Vigentini'
__copyright__ = '2009, Lorenzo Vigentini <l.vigentini at gmail.com>'
__version__ = 'v1.01'
__date__ = '14, January 2010'

'''
http://www.pcadvisor.co.uk/
'''

from calibre.web.feeds.news import BasicNewsRecipe


class pcAdvisor(BasicNewsRecipe):
    __author__ = 'Lorenzo Vigentini'
    description = 'PC Advisor delivers expert advice you can trust to business and home PC users who want to buy the best-value equipment and make the most out of the equipment they already own.'  # noqa: E501

    cover_url = 'http://media.pcadvisor.co.uk/images/spacer.gif'
    title = 'Pc Advisor '
    publisher = 'IDG Communication'
    category = 'PC, computing, product reviews, UK'

    language = 'en'
    encoding = 'cp1252'
    timefmt = '[%a, %d %b, %Y]'

    oldest_article = 15
    max_articles_per_feed = 25
    use_embedded_content = False
    recursion = 10

    remove_javascript = True
    no_stylesheets = True
    auto_cleanup = True

    feeds = [
        ('Latest', 'http://www.pcadvisor.co.uk/latest/rss'),
        ('News', 'http://www.pcadvisor.co.uk/news/rss'),
        ('How-tos', 'http://www.pcadvisor.co.uk/how-to/rss'),
        ('Reviews', 'http://www.pcadvisor.co.uk/review/rss'),
        ('Video Content', 'http://www.pcadvisor.co.uk/video/rss'),
        ('iPhone', 'http://www.pcadvisor.co.uk/latest/iphone/rss'),
        ('iPad', 'http://www.pcadvisor.co.uk/latest/ipad/rss'),
        ('Mac', 'http://www.pcadvisor.co.uk/latest/mac/rss'),
        ('Apple', 'http://www.pcadvisor.co.uk/latest/apple/rss'),
    ]
