This commit is contained in:
Kovid Goyal 2017-12-07 21:54:03 +05:30
commit f66f9aced1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 0 deletions

View File

@ -171,7 +171,9 @@ class Economist(BasicNewsRecipe):
if img is not None:
for part in img['srcset'].split():
if part.startswith('//'):
part = part.replace('200-width', '640-width')
self.cover_url = 'https:' + part
self.log('Got cover:', self.cover_url)
break
sections = soup.findAll(

View File

@ -171,7 +171,9 @@ class Economist(BasicNewsRecipe):
if img is not None:
for part in img['srcset'].split():
if part.startswith('//'):
part = part.replace('200-width', '640-width')
self.cover_url = 'https:' + part
self.log('Got cover:', self.cover_url)
break
sections = soup.findAll(