# created by sexymax15 ....sexymax15@gmail.com
# christian post recipe
from calibre.web.feeds.news import BasicNewsRecipe


class ChristianPost(BasicNewsRecipe):
    title = 'The Christian Post'
    __author__ = 'sexymax15'
    description = 'Homepage'
    language = 'en'
    use_embedded_content = False
    oldest_article = 30
    max_articles_per_feed = 15

    remove_empty_feeds = True
    no_stylesheets = True
    remove_javascript = True

    feeds = [
        ('Homepage', 'http://www.christianpost.com/services/rss/feed/'),
        ('Most Popular', 'http://www.christianpost.com/services/rss/feed/most-popular'),
        ('Entertainment', 'http://www.christianpost.com/services/rss/feed/entertainment/'),
        ('Politics', 'http://www.christianpost.com/services/rss/feed/politics/'),
        ('Living', 'http://www.christianpost.com/services/rss/feed/living/'),
        ('Business', 'http://www.christianpost.com/services/rss/feed/business/'),
        ('Opinion', 'http://www.christianpost.com/services/rss/feed/opinion/'),
    ]

    def print_version(self, url):
        return url + 'print.html'
