From 75bfce332746fdd7100713e15c0ed8713fc98589 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 18 Nov 2012 23:58:09 +0530 Subject: [PATCH] Cleanup recpe language specifications --- recipes/buchreport.recipe | 2 +- recipes/editoriali.recipe | 1 + recipes/foreign_policy.recipe | 1 + recipes/insider.recipe | 2 +- recipes/portfolio_hu.recipe | 2 +- recipes/pravo.recipe | 2 +- recipes/spektrum.recipe | 2 +- recipes/xpatloop.recipe | 2 +- recipes/zeitde.recipe | 2 +- 9 files changed, 9 insertions(+), 7 deletions(-) diff --git a/recipes/buchreport.recipe b/recipes/buchreport.recipe index 68d98d0622..5ed34d1ee8 100644 --- a/recipes/buchreport.recipe +++ b/recipes/buchreport.recipe @@ -11,7 +11,7 @@ class Buchreport(BasicNewsRecipe) : title = u'Buchreport' timefmt = ' [%d.%m.%Y]' encoding = 'cp1252' - language = 'de_DE' + language = 'de' extra_css = 'body { margin-left: 0.00em; margin-right: 0.00em; } \ diff --git a/recipes/editoriali.recipe b/recipes/editoriali.recipe index 1b0c558df4..c5596bd743 100644 --- a/recipes/editoriali.recipe +++ b/recipes/editoriali.recipe @@ -7,6 +7,7 @@ class AdvancedUserRecipe1332847053(BasicNewsRecipe): title = u'Editoriali' __author__ = 'faber1971' description = 'Leading articles on Italy by the best Italian editorials' + language = 'it' oldest_article = 1 max_articles_per_feed = 100 diff --git a/recipes/foreign_policy.recipe b/recipes/foreign_policy.recipe index 893d055a05..4ddecf842f 100644 --- a/recipes/foreign_policy.recipe +++ b/recipes/foreign_policy.recipe @@ -8,6 +8,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1349086293(BasicNewsRecipe): title = u'Foreign Policy' + language = 'en' __author__ = 'Darko Miletic' description = 'International News' publisher = 'Washingtonpost.Newsweek Interactive, LLC' diff --git a/recipes/insider.recipe b/recipes/insider.recipe index 1374cb408d..faaf00a14a 100644 --- a/recipes/insider.recipe +++ b/recipes/insider.recipe @@ -7,7 +7,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class insider(BasicNewsRecipe): __author__ = 'bubak' title = 'Insider' - language = 'cz' + language = 'cs' remove_tags = [dict(name='div', attrs={'class':'article-related-content'}) ,dict(name='div', attrs={'class':'calendar'}) diff --git a/recipes/portfolio_hu.recipe b/recipes/portfolio_hu.recipe index 5eaf0e886f..feadd124ed 100644 --- a/recipes/portfolio_hu.recipe +++ b/recipes/portfolio_hu.recipe @@ -4,7 +4,7 @@ class AdvancedUserRecipe1348063712(BasicNewsRecipe): title = u'Portfolio.hu - English Edition' __author__ = 'laca' oldest_article = 7 - language = 'en_HUN' + language = 'en_HU' masthead_url = 'http://www.portfolio.hu/img/sit/angolfejlec2010.jpg' use_embedded_content = False auto_cleanup = True diff --git a/recipes/pravo.recipe b/recipes/pravo.recipe index 04fab99fb2..02d2c13439 100644 --- a/recipes/pravo.recipe +++ b/recipes/pravo.recipe @@ -6,7 +6,7 @@ from calibre.web.feeds.news import BasicNewsRecipe class pravo(BasicNewsRecipe): __author__ = 'bubak' title = 'Právo' - language = 'cz' + language = 'cs' remove_tags_before = dict(name='div', attrs={'class':'rubrika-ostat'}) remove_tags_after = dict(name='td', attrs={'class':'rubrika'}) diff --git a/recipes/spektrum.recipe b/recipes/spektrum.recipe index da4112fbe5..fa60b56560 100644 --- a/recipes/spektrum.recipe +++ b/recipes/spektrum.recipe @@ -16,7 +16,7 @@ class AdvancedUserRecipe1303841067(BasicNewsRecipe): no_stylesheets = True remove_javascript = True remove_empty_feeds = True - language = 'de_DE' + language = 'de' #conversion_options = {'base_font_size': 20} diff --git a/recipes/xpatloop.recipe b/recipes/xpatloop.recipe index 89b45c899e..4a7f137e9c 100644 --- a/recipes/xpatloop.recipe +++ b/recipes/xpatloop.recipe @@ -4,7 +4,7 @@ class AdvancedUserRecipe1347997197(BasicNewsRecipe): title = u'XpatLoop.com' __author__ = 'laca' oldest_article = 7 - language = 'en_HUN' + language = 'en_HU' auto_cleanup = True masthead_url = 'http://www.xpatloop.com/images/cms/xs_logo.gif' use_embedded_content = False diff --git a/recipes/zeitde.recipe b/recipes/zeitde.recipe index e05e50cba4..8d3cf5a9a2 100644 --- a/recipes/zeitde.recipe +++ b/recipes/zeitde.recipe @@ -16,7 +16,7 @@ class ZeitDe(BasicNewsRecipe): category = 'news, Germany' timefmt = ' [%a, %d %b %Y]' publication_type = 'newspaper' - language = 'de_DE' + language = 'de' encoding = 'UTF-8' oldest_article = 7