mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update New York Review of Books
This commit is contained in:
parent
ceabbb4bcc
commit
1584be21ce
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user