mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1894 (The Economist news feed not working)
This commit is contained in:
parent
d3366d969d
commit
94d0473c97
@ -60,8 +60,11 @@ class Economist(BasicNewsRecipe):
|
||||
continue
|
||||
a = tag.find('a', href=True)
|
||||
if a is not None:
|
||||
url=a['href'].replace('displaystory', 'PrinterFriendly')
|
||||
if url.startswith('/'):
|
||||
url = 'http://www.economist.com' + url
|
||||
article = dict(title=text,
|
||||
url='http://www.economist.com'+a['href'].replace('displaystory', 'PrinterFriendly'),
|
||||
url = url,
|
||||
description='', content='', date='')
|
||||
feeds[key].append(article)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user