From f9841b201205888385252992add176bcc9aa7c94 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 Aug 2014 13:58:38 +0530 Subject: [PATCH] BBC Arabic by logophile777 --- recipes/bbc_arabic.recipe | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 recipes/bbc_arabic.recipe diff --git a/recipes/bbc_arabic.recipe b/recipes/bbc_arabic.recipe new file mode 100644 index 0000000000..3dce52c279 --- /dev/null +++ b/recipes/bbc_arabic.recipe @@ -0,0 +1,18 @@ +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'