from calibre.web.feeds.news import BasicNewsRecipe


class DallasNews(BasicNewsRecipe):
    title = u'The Dallas Morning News'
    language = 'en'
    oldest_article = 2  # days
    max_articles_per_feed = 25

    no_stylesheets = True
    use_embedded_content = False
    auto_cleanup = True

    feeds = [
        ('News',
         'http://www.dallasnews.com/news.rss'),
        ('Local News',
         'http://www.dallasnews.com/news/local-politics.rss'),
        ('State Politics',
         'http://www.dallasnews.com/news/texas-politics.rss'),
        ('Religion',
         'http://www.dallasnews.com/life/faith.rss'),
        ('Crime',
         'http://www.dallasnews.com/news/crime.rss'),
        ('Celebrity News',
         'http://www.dallasnews.com/entertainment/celebrity-news/?rss&listname=TopStories'),
        ('Business',
         'http://www.dallasnews.com/business.rss'),
        ('Arts',
         'http://www.dallasnews.com/arts.rss'),
        ('Life',
         'http://www.dallasnews.com/life.rss'),
        ('Opinion',
         'http://www.dallasnews.com/opinion.rss'),
    ]
