Update New York Review of Books

This commit is contained in:
Kovid Goyal 2024-03-28 06:28:06 +05:30
parent ceabbb4bcc
commit 1584be21ce
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 4 deletions

View File

@ -60,9 +60,9 @@ class NewYorkReviewOfBooks(BasicNewsRecipe):
# ipython({'soup': soup})
# Find cover
cover = soup.find('img', attrs={'class':'border-light-gray'})
cover = soup.find('img', attrs={'class':'border-light-gray', 'src': True})
if cover is not None:
self.cover_url = absurl(cover['data-lazy-src'])
self.cover_url = absurl(cover['src'])
self.log('Found cover at:', self.cover_url)
# Find date

View File

@ -50,9 +50,9 @@ class NewYorkReviewOfBooks(BasicNewsRecipe):
# ipython({'soup': soup})
# Find cover
cover = soup.find('img', attrs={'class':'border-light-gray'})
cover = soup.find('img', attrs={'class':'border-light-gray', 'src': True})
if cover is not None:
self.cover_url = absurl(cover['data-lazy-src'])
self.cover_url = absurl(cover['src'])
self.log('Found cover at:', self.cover_url)
# Find date