mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update New Yorker
Fixes #1660162 [Newyorker cover not downloading](https://bugs.launchpad.net/calibre/+bug/1660162)
This commit is contained in:
parent
f481b12325
commit
73e9043976
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user