mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix cover resolution & add log line
This commit is contained in:
parent
0b9327a359
commit
ac94d00ed2
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user