Fix cover resolution & add log line

This commit is contained in:
bobbysteel 2017-12-07 15:56:17 +00:00 committed by GitHub
parent 0b9327a359
commit ac94d00ed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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','1200-width')
self.cover_url = 'https:' + part
self.log('Got cover: ',self.cover_url)
break
sections = soup.findAll(