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(
|
ph = soup.find(
|
||||||
'div', attrs={'class': lambda x: x and 'cover-info' in x.split()})
|
'div', attrs={'class': lambda x: x and 'cover-info' in x.split()})
|
||||||
if ph is not None:
|
if ph is not None:
|
||||||
img = ph.find('img', src=True)
|
img = ph.find('img')
|
||||||
if img is not None:
|
if img is not None:
|
||||||
self.cover_url = img['src'].replace('-320.jpg', '.jpg')
|
self.cover_url = img['data-src']
|
||||||
articles = []
|
articles = []
|
||||||
current_section = 'Current Issue'
|
current_section = 'Current Issue'
|
||||||
feeds = []
|
feeds = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user