mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix language codes for various recipes
This commit is contained in:
parent
dc799bbe16
commit
5030402995
@ -2,8 +2,9 @@ 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
|
||||||
oldest_article = 7
|
oldest_article = 7
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
@ -35,4 +36,4 @@ class AdvancedUserRecipe1255797795(BasicNewsRecipe):
|
|||||||
url = url.replace("ostergotland/mjolby/artikel.aspx", "Print.aspx")
|
url = url.replace("ostergotland/mjolby/artikel.aspx", "Print.aspx")
|
||||||
url = url.replace("ostergotland/motala/artikel.aspx", "Print.aspx")
|
url = url.replace("ostergotland/motala/artikel.aspx", "Print.aspx")
|
||||||
return url.replace("nyheter/artikel.aspx", "Print.aspx")
|
return url.replace("nyheter/artikel.aspx", "Print.aspx")
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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'})
|
||||||
|
@ -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'})
|
||||||
|
@ -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'})
|
||||||
|
@ -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'})
|
||||||
|
@ -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]'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user