mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix #3399 (Problem with recipe for The Economist?)
This commit is contained in:
parent
0a564333e0
commit
0a840e9e2b
@ -61,8 +61,8 @@ 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=a['href'].replace('displaystory', 'PrinterFriendly').strip()
|
||||
if url.startswith('/') or url.startswith('PrinterF'):
|
||||
url = 'http://www.economist.com' + url
|
||||
try:
|
||||
subtitle = tag.previousSibling.contents[0].contents[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user