#!/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

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