Skip to content

Commit a14d405

Browse files
committed
Temporary fix for new york review of books cover image missing
1 parent ceabbb4 commit a14d405

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

recipes/new_york_review_of_books.recipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class NewYorkReviewOfBooks(BasicNewsRecipe):
6060
# ipython({'soup': soup})
6161

6262
# Find cover
63-
cover = soup.find('img', attrs={'class':'border-light-gray'})
63+
cover = soup.find('img', attrs={'class':'border-light-gray', 'data-lazy-src': True})
6464
if cover is not None:
6565
self.cover_url = absurl(cover['data-lazy-src'])
6666
self.log('Found cover at:', self.cover_url)

recipes/new_york_review_of_books_no_sub.recipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class NewYorkReviewOfBooks(BasicNewsRecipe):
5050
# ipython({'soup': soup})
5151

5252
# Find cover
53-
cover = soup.find('img', attrs={'class':'border-light-gray'})
53+
cover = soup.find('img', attrs={'class':'border-light-gray', 'data-lazy-src': True})
5454
if cover is not None:
5555
self.cover_url = absurl(cover['data-lazy-src'])
5656
self.log('Found cover at:', self.cover_url)

0 commit comments

Comments
 (0)