from calibre.web.feeds.news import BasicNewsRecipe


class ColumbusDispatchRecipe(BasicNewsRecipe):
    __license__ = 'GPL v3'
    __author__ = 'kwetal'
    language = 'en'
    version = 1

    title = u'The Columbus Dispatch'
    publisher = u'The Columbus Dispatch'
    category = u'News, Newspaper'
    description = u'Daily newspaper from central Ohio'

    use_embedded_content = False
    remove_empty_feeds = True
    oldest_article = 1.2
    use_embedded_content = False

    no_stylesheets = True
    auto_cleanup = True
    # Feeds from http://www.dispatch.com/live/content/rss/index.html
    feeds = [
        ('Local',
         'http://www.dispatch.com/content/syndication/news_local-state.xml'),
        ('National',
         'http://www.dispatch.com/content/syndication/news_national.xml'),
        ('Business',
         'http://www.dispatch.com/content/syndication/news_business.xml'),
        ('Editorials',
         'http://www.dispatch.com/content/syndication/opinion_editorials.xml'),
        ('Columnists',
         'http://www.dispatch.com/content/syndication/opinion_columns.xml'),
        ('Life and Arts',
         'http://www.dispatch.com/content/syndication/lae_life-and-arts.xml'),
        ('OSU Sports',
         'http://www.dispatch.com/content/syndication/sports_osu.xml'),
        ('Auto Racing',
         'http://www.dispatch.com/content/syndication/sports_auto-racing.xml'),
        ('Outdoors',
         'http://www.dispatch.com/content/syndication/sports_outdoors.xml'),
        ('Bengals',
         'http://www.dispatch.com/content/syndication/sports_bengals.xml'),
        ('Indians',
         'http://www.dispatch.com/content/syndication/sports_indians.xml'),
        ('Clippers',
         'http://www.dispatch.com/content/syndication/sports_clippers.xml'),
        ('Crew',
         'http://www.dispatch.com/content/syndication/sports_crew.xml'),
        ('Reds',
         'http://www.dispatch.com/content/syndication/sports_reds.xml'),
        ('Blue Jackets',
         'http://www.dispatch.com/content/syndication/sports_bluejackets.xml'),
    ]
