mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Handle curretn NEw Yorker using an animated GIF for the cover
This commit is contained in:
parent
f706e2a046
commit
fde5b4020f
@ -44,7 +44,10 @@ class NewYorker(BasicNewsRecipe):
|
|||||||
if ph is not None:
|
if ph is not None:
|
||||||
img = ph.find('img')
|
img = ph.find('img')
|
||||||
if img is not None:
|
if img is not None:
|
||||||
self.cover_url = img['data-src']
|
try:
|
||||||
|
self.cover_url = img['data-src']
|
||||||
|
except KeyError:
|
||||||
|
self.cover_url = img['src']
|
||||||
articles = []
|
articles = []
|
||||||
current_section = 'Current Issue'
|
current_section = 'Current Issue'
|
||||||
feeds = []
|
feeds = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user