mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-26 15:57:39 +01:00
Merge branch 'patch-1' of https://github.com/bobbysteel/calibre
This commit is contained in:
commit
f66f9aced1
2 changed files with 4 additions and 0 deletions
|
|
@ -171,7 +171,9 @@ def economist_parse_index(self, soup):
|
|||
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 @@ def economist_parse_index(self, soup):
|
|||
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…
Reference in a new issue