from calibre.web.feeds.news import BasicNewsRecipe


class BBCArabic(BasicNewsRecipe):
    title = u'BBC Arabic Middle East'
    oldest_article = 7
    max_articles_per_feed = 100
    extra_css = 'body { text-align: right;  direction:rtl; } '
    auto_cleanup = True
    language = 'ar'
    __author__ = 'logophile777'
    remove_tags = [
        {'class': ['emp-alt-handheld', 'emp-noflash',
                   'emp-flashlink', 'emp-alt-screen']}
    ]

    feeds = [(u'BBC Arabic Middle East',
              u'http://www.bbc.co.uk/arabic/middleeast/index.xml')]

    def print_version(self, url):
        return url + '?print=1'
