From 38e486cb169011044825edb81e93dd79c10d30e0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 27 Jul 2020 18:15:47 +0530 Subject: [PATCH] Fix New Yorker cover not being downloaded --- recipes/new_yorker.recipe | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/new_yorker.recipe b/recipes/new_yorker.recipe index dbfd737f51..b4312e4949 100644 --- a/recipes/new_yorker.recipe +++ b/recipes/new_yorker.recipe @@ -72,8 +72,9 @@ class NewYorker(BasicNewsRecipe): soup = self.index_to_soup( 'https://www.newyorker.com/magazine?intcid=magazine') # soup = self.index_to_soup('file:///t/raw.html') - cover_img = soup.find( - attrs={'class': lambda x: x and 'MagazineCover__cover___' in x}) + cover_soup = self.index_to_soup('https://www.newyorker.com/archive') + cover_img = cover_soup.find( + attrs={'class': lambda x: x and 'MagazineSection__cover___' in x}) if cover_img is not None: cover_img = cover_img.find('img') if cover_img is not None: