Fix language codes for various recipes

This commit is contained in:
Kovid Goyal 2010-01-14 20:37:28 -07:00
parent dc799bbe16
commit 5030402995
7 changed files with 9 additions and 4 deletions

View File

@ -2,6 +2,7 @@ from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1255797795(BasicNewsRecipe): class AdvancedUserRecipe1255797795(BasicNewsRecipe):
title = u'Corren' title = u'Corren'
language = 'sv'
__author__ = 'Jonas Svensson' __author__ = 'Jonas Svensson'
simultaneous_downloads = 1 simultaneous_downloads = 1
no_stylesheets = True no_stylesheets = True

View File

@ -5,7 +5,7 @@ class HoustonChronicle(BasicNewsRecipe):
title = u'The Houston Chronicle' title = u'The Houston Chronicle'
description = 'News from Houston, Texas' description = 'News from Houston, Texas'
__author__ = 'Kovid Goyal' __author__ = 'Kovid Goyal'
language = 'US' language = 'en'
timefmt = ' [%a, %d %b, %Y]' timefmt = ' [%a, %d %b, %Y]'
no_stylesheets = True no_stylesheets = True

View File

@ -20,7 +20,7 @@ class LeTemps(BasicNewsRecipe):
recursions = 1 recursions = 1
encoding = 'UTF-8' encoding = 'UTF-8'
match_regexps = [r'http://www.letemps.ch/Page/Uuid/[-0-9a-f]+\|[1-9]'] match_regexps = [r'http://www.letemps.ch/Page/Uuid/[-0-9a-f]+\|[1-9]']
lang = 'fr' language = 'fr'
keep_only_tags = [dict(name='div', attrs={'id':'content'}), keep_only_tags = [dict(name='div', attrs={'id':'content'}),
dict(name='div', attrs={'class':'story'}) dict(name='div', attrs={'class':'story'})

View File

@ -8,6 +8,7 @@ class NYTimes(BasicNewsRecipe):
description = 'Canadian national newspaper' description = 'Canadian national newspaper'
timefmt = ' [%d %b, %Y]' timefmt = ' [%d %b, %Y]'
needs_subscription = False needs_subscription = False
language = 'en_CA'
no_stylesheets = True no_stylesheets = True
#remove_tags_before = dict(name='h1', attrs={'class':'heading'}) #remove_tags_before = dict(name='h1', attrs={'class':'heading'})

View File

@ -8,6 +8,7 @@ class NYTimes(BasicNewsRecipe):
description = 'Medical news' description = 'Medical news'
timefmt = ' [%d %b, %Y]' timefmt = ' [%d %b, %Y]'
needs_subscription = True needs_subscription = True
language = 'en'
no_stylesheets = True no_stylesheets = True
remove_tags_before = dict(name='div', attrs={'align':'center'}) remove_tags_before = dict(name='div', attrs={'align':'center'})

View File

@ -6,6 +6,7 @@ class NewZealandHerald(BasicNewsRecipe):
__author__ = 'Krittika Goyal' __author__ = 'Krittika Goyal'
description = 'Daily news' description = 'Daily news'
timefmt = ' [%d %b, %Y]' timefmt = ' [%d %b, %Y]'
language = 'en_AU'
no_stylesheets = True no_stylesheets = True
remove_tags_before = dict(name='div', attrs={'class':'contentContainer left eight'}) remove_tags_before = dict(name='div', attrs={'class':'contentContainer left eight'})

View File

@ -12,6 +12,7 @@ class weltDe(BasicNewsRecipe):
title = 'Weltonline' title = 'Weltonline'
description = 'german newspaper' description = 'german newspaper'
language = 'de'
__author__ = 'Oliver Niesner' __author__ = 'Oliver Niesner'
use_embedded_content = False use_embedded_content = False
timefmt = ' [%d %b %Y]' timefmt = ' [%d %b %Y]'