mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-06 04:02:30 +02:00
Fix #3399 (Problem with recipe for The Economist?)
This commit is contained in:
parent
0a564333e0
commit
0a840e9e2b
1 changed files with 2 additions and 2 deletions
|
|
@ -61,8 +61,8 @@ def parse_index(self):
|
|||
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…
Reference in a new issue