From 1584be21cef22f0ed4a9403f66f2928acc60c0f5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 28 Mar 2024 06:28:06 +0530 Subject: [PATCH] Update New York Review of Books --- recipes/new_york_review_of_books.recipe | 4 ++-- recipes/new_york_review_of_books_no_sub.recipe | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/new_york_review_of_books.recipe b/recipes/new_york_review_of_books.recipe index 48bca9d3d7..c76078be13 100644 --- a/recipes/new_york_review_of_books.recipe +++ b/recipes/new_york_review_of_books.recipe @@ -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 diff --git a/recipes/new_york_review_of_books_no_sub.recipe b/recipes/new_york_review_of_books_no_sub.recipe index d179aca304..548ab2bf37 100644 --- a/recipes/new_york_review_of_books_no_sub.recipe +++ b/recipes/new_york_review_of_books_no_sub.recipe @@ -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