from calibre.web.feeds.news import BasicNewsRecipe


class ArmyTimes(BasicNewsRecipe):
    title = 'Army Times'
    __author__ = 'jde'
    __date__ = '16 May 2012'
    __version__ = '1.0'
    description = 'News of the U.S. Army'
    language = 'en'
    publisher = 'ArmyTimes.com'
    category = 'news, U.S. Army'
    tags = 'news, U.S. Army'
    cover_url = 'http://www.armytimes.com/images/logo_armytimes_alert.jpg'
    masthead_url = 'http://www.armytimes.com/images/logo_armytimes_alert.jpg'
    oldest_article = 7  # days
    max_articles_per_feed = 25
    publication_type = 'newspaper'
    no_stylesheets = True
    use_embedded_content = False
    encoding = None
    recursions = 0
    needs_subscription = False
    remove_javascript = True
    remove_empty_feeds = True
    auto_cleanup = True

    feeds = [
        ('Home', 'http://feeds.feedburner.com/rss/category/arm-home?format=xml'),
        ('Education', 'http://feeds.feedburner.com/rss/category/arm-education?format=xml'),
        ('Careers', 'http://feeds.feedburner.com/rss/category/arm-careers?format=xml'),
        ('Adventure', 'http://feeds.feedburner.com/rss/category/arm-Adventure?format=xml'),
        ('Entertainment', 'http://feeds.feedburner.com/rss/category/arm-entertainment?format=xml'),
        ('Technology', 'http://feeds.feedburner.com/rss/category/arm-technology?format=xml'),
        ('Reserve', 'http://feeds.feedburner.com/rss/category/arm-reserve?format=xml'),
        ('Opinion', 'http://feeds.feedburner.com/rss/category/arm-opinion?format=xml'),
        ('Pay', 'http://feeds.feedburner.com/rss/category/arm-pay?format=xml'),
    ]
