#!/usr/bin/env python
from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1398527969(BasicNewsRecipe):
    title = u'DW-Deutsch XXL'
    language = 'de_DE'
    __author__ = 'xav'
    oldest_article = 7
    max_articles_per_feed = 100
    auto_cleanup = True
    no_stylesheets = True
    use_embedded_content = False
    remove_javascript = True
    feeds = [(u'Nachrichten', u'http://rss.dw.com/xml/rss-de-news'),
             (u'Themen des Tages', u'http://rss.dw.com/xml/rss-de-top'),
             (u'Langsam gesprochene Nachrichten',
              u'https://rss.dw.com/rdf/DKfeed_lgn_de'),
             (u'Wissenschaft', u'https://rss.dw.com/xml/rss-de-wissenschaft'),
             (u'Wirtschaft', u'https://rss.dw.com/xml/rss-de-eco'),
             (u'Wort der Woche',
              u'https://rss.dw.com/xml/DKpodcast_wortderwoche_de'),
             (u'Deutschland entdecken',
              u'http://rss.dw.com/xml/rss-de-deutschlandentdecken')]

    def print_version(self, url):
        target = url.rpartition('/')[2]
        print_url = 'https://www.dw-world.de/popups/popup_printcontent/' + target
        return print_url
