mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Merge branch 'patch-1' of https://github.com/bobbysteel/calibre
This commit is contained in:
commit
f66f9aced1
@ -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(
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user