Update New Yorker

Fixes #1660162 [Newyorker cover not downloading](https://bugs.launchpad.net/calibre/+bug/1660162)
This commit is contained in:
Kovid Goyal 2017-01-30 21:35:29 +05:30
parent f481b12325
commit 73e9043976

View File

@ -42,9 +42,9 @@ class NewYorker(BasicNewsRecipe):
ph = soup.find(
'div', attrs={'class': lambda x: x and 'cover-info' in x.split()})
if ph is not None:
img = ph.find('img', src=True)
img = ph.find('img')
if img is not None:
self.cover_url = img['src'].replace('-320.jpg', '.jpg')
self.cover_url = img['data-src']
articles = []
current_section = 'Current Issue'
feeds = []