mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -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:
|
if img is not None:
|
||||||
for part in img['srcset'].split():
|
for part in img['srcset'].split():
|
||||||
if part.startswith('//'):
|
if part.startswith('//'):
|
||||||
|
part = part.replace('200-width','1200-width')
|
||||||
self.cover_url = 'https:' + part
|
self.cover_url = 'https:' + part
|
||||||
|
self.log('Got cover: ',self.cover_url)
|
||||||
break
|
break
|
||||||
|
|
||||||
sections = soup.findAll(
|
sections = soup.findAll(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user