Fix #5792 (Problem with Economist (printedition) recipe)

This commit is contained in:
Kovid Goyal 2010-06-11 12:02:42 -06:00
parent 4e136e7d4b
commit 397ce8f023

View File

@ -88,7 +88,9 @@ class Economist(BasicNewsRecipe):
continue
a = tag.find('a', href=True)
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'):
url = '/'+url
if url.startswith('/'):