Handle curretn NEw Yorker using an animated GIF for the cover

This commit is contained in:
Kovid Goyal 2017-03-28 08:39:44 +05:30
parent f706e2a046
commit fde5b4020f

View File

@ -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 = []