mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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:
|
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', '640-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(
|
||||||
|
@ -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', '640-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