From 487eb9d4acc5a3957a9bb74a39ff5635d749fc2e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Nov 2014 09:05:44 +0530 Subject: [PATCH] Add missing languages for various recipes --- recipes/cosmopolitan_uk.recipe | 3 ++- recipes/counterpunch.recipe | 1 + recipes/daily_express.recipe | 1 + recipes/dark_reading.recipe | 1 + recipes/frandroid.recipe | 1 + recipes/googlemobileblog.recipe | 1 + recipes/national_geographic_mag.recipe | 1 + recipes/omgubuntu.recipe | 1 + recipes/worldcrunch.recipe | 1 + 9 files changed, 10 insertions(+), 1 deletion(-) diff --git a/recipes/cosmopolitan_uk.recipe b/recipes/cosmopolitan_uk.recipe index e06cb0964c..2c42723275 100644 --- a/recipes/cosmopolitan_uk.recipe +++ b/recipes/cosmopolitan_uk.recipe @@ -4,9 +4,10 @@ from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1390635673(BasicNewsRecipe): title = u'Cosmopolitan UK' description = 'Womens Fashion, beauty and Gossip for women from COSMOPOLITAN -UK' + language = 'en_GB' __author__ = 'Dave Asbury' - # 2/2/14 + # 2/2/14 oldest_article = 28 max_articles_per_feed = 10 compress_news_images = True diff --git a/recipes/counterpunch.recipe b/recipes/counterpunch.recipe index abcee3cd8f..a23d89dc59 100644 --- a/recipes/counterpunch.recipe +++ b/recipes/counterpunch.recipe @@ -5,6 +5,7 @@ class Counterpunch(BasicNewsRecipe): oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True + language = 'en' feeds = [(u'Counterpunch', u'http://www.counterpunch.org/category/article/feed/')] diff --git a/recipes/daily_express.recipe b/recipes/daily_express.recipe index 53986d8e81..3a74f733f0 100644 --- a/recipes/daily_express.recipe +++ b/recipes/daily_express.recipe @@ -10,6 +10,7 @@ class AdvancedUserRecipe1376229553(BasicNewsRecipe): # 16-11-13 cover adjustment # 19.1.14 changes due to website changes breaking recipe encoding = 'utf-8' + language = 'en_GB' remove_empty_feeds = True remove_javascript = True no_stylesheets = True diff --git a/recipes/dark_reading.recipe b/recipes/dark_reading.recipe index 905cfda7dc..f3b9df7e5b 100644 --- a/recipes/dark_reading.recipe +++ b/recipes/dark_reading.recipe @@ -11,6 +11,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class DarkReading(BasicNewsRecipe): title = u'Dark Reading' __author__ = 'Brandon Allberry' + language = 'en' description = u'Dark Reading is the premier online resource helping information security professionals manage the balance between protection and access. It offers breaking news and analysis on attacks, breaches and vulnerabilities, as well as strategies for protecting enterprise data. It also offers guidance on setting risk management and compliance policies.' oldest_article = 7 max_articles_per_feed = 100 diff --git a/recipes/frandroid.recipe b/recipes/frandroid.recipe index 76c42f7360..241dc613af 100644 --- a/recipes/frandroid.recipe +++ b/recipes/frandroid.recipe @@ -3,6 +3,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class BasicUserRecipe1318572550(BasicNewsRecipe): title = u'FrAndroid' + language = 'fr' oldest_article = 2 max_articles_per_feed = 100 auto_cleanup = True diff --git a/recipes/googlemobileblog.recipe b/recipes/googlemobileblog.recipe index 8d755e4a26..353268e60f 100644 --- a/recipes/googlemobileblog.recipe +++ b/recipes/googlemobileblog.recipe @@ -4,6 +4,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class BasicUserRecipe1318572445(BasicNewsRecipe): title = u'Google Mobile Blog' + language = 'en' oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True diff --git a/recipes/national_geographic_mag.recipe b/recipes/national_geographic_mag.recipe index 4fd60bd35b..5b43e8b4a9 100644 --- a/recipes/national_geographic_mag.recipe +++ b/recipes/national_geographic_mag.recipe @@ -6,6 +6,7 @@ class NGM(BasicNewsRecipe): __author__ = 'Krittika Goyal' description = 'National Geographic Magazine' timefmt = ' [%d %b, %Y]' + language = 'en' no_stylesheets = True auto_cleanup = True diff --git a/recipes/omgubuntu.recipe b/recipes/omgubuntu.recipe index efd778955a..fe8389d827 100644 --- a/recipes/omgubuntu.recipe +++ b/recipes/omgubuntu.recipe @@ -3,6 +3,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class BasicUserRecipe1318619832(BasicNewsRecipe): title = u'OmgUbuntu' + language = 'en' oldest_article = 7 max_articles_per_feed = 100 auto_cleanup = True diff --git a/recipes/worldcrunch.recipe b/recipes/worldcrunch.recipe index c354813f00..c397f70221 100644 --- a/recipes/worldcrunch.recipe +++ b/recipes/worldcrunch.recipe @@ -6,6 +6,7 @@ class Worldcrunch(BasicNewsRecipe): oldest_article = 2 #days max_articles_per_feed = 25 use_embedded_content = False + language = 'en' no_stylesheets = True auto_cleanup = True