mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 23:55:40 +01:00
Handle curretn NEw Yorker using an animated GIF for the cover
This commit is contained in:
parent
f706e2a046
commit
fde5b4020f
1 changed files with 4 additions and 1 deletions
|
|
@ -44,7 +44,10 @@ def parse_index(self):
|
|||
if ph is not None:
|
||||
img = ph.find('img')
|
||||
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 = []
|
||||
current_section = 'Current Issue'
|
||||
feeds = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue