mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5792 (Problem with Economist (printedition) recipe)
This commit is contained in:
parent
4e136e7d4b
commit
397ce8f023
@ -88,7 +88,9 @@ class Economist(BasicNewsRecipe):
|
|||||||
continue
|
continue
|
||||||
a = tag.find('a', href=True)
|
a = tag.find('a', href=True)
|
||||||
if a is not None:
|
if a is not None:
|
||||||
url=a['href'].split('?')[0]+'/print'
|
url=a['href']
|
||||||
|
id_ = re.search(r'story_id=(\d+)', url).group(1)
|
||||||
|
url = 'http://www.economist.com/node/%s/print'%id_
|
||||||
if url.startswith('Printer'):
|
if url.startswith('Printer'):
|
||||||
url = '/'+url
|
url = '/'+url
|
||||||
if url.startswith('/'):
|
if url.startswith('/'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user