mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #3489 (recipe_DieZeit_doesn't work)
This commit is contained in:
parent
20b04fa1e0
commit
58f919fece
@ -19,10 +19,12 @@ class ZeitDe(BasicNewsRecipe):
|
||||
timefmt = ' [%d %b %Y]'
|
||||
max_articles_per_feed = 40
|
||||
no_stylesheets = True
|
||||
encoding = 'latin1'
|
||||
encoding = 'utf8'
|
||||
|
||||
remove_tags = [{'class': 'adwrap'}]
|
||||
keep_only_tags = [{'name': 'div', 'class': 'content'}]
|
||||
|
||||
feeds = [ ('Kurznachrichten', 'http://newsfeed.zeit.de/news/index'),
|
||||
feeds = [ ('Kurznachrichten', 'http://newsfeed.zeit.de/index'),
|
||||
('Politik', 'http://newsfeed.zeit.de/politik/index'),
|
||||
('Wirtschaft', 'http://newsfeed.zeit.de/wirtschaft/index'),
|
||||
('Meinung', 'http://newsfeed.zeit.de/meinung/index'),
|
||||
@ -32,5 +34,5 @@ class ZeitDe(BasicNewsRecipe):
|
||||
]
|
||||
|
||||
def print_version(self,url):
|
||||
return url.replace('http://www.zeit.de/', 'http://images.zeit.de/text/').replace('?from=rss', '')
|
||||
return url.replace('http://www.zeit.de/', 'http://mobil.zeit.de/')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user