From 73e9043976945079f0b0dbda22dd07096840529a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 30 Jan 2017 21:35:29 +0530 Subject: [PATCH] Update New Yorker Fixes #1660162 [Newyorker cover not downloading](https://bugs.launchpad.net/calibre/+bug/1660162) --- recipes/new_yorker.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/new_yorker.recipe b/recipes/new_yorker.recipe index 9fa3bed4da..1d0a56217a 100644 --- a/recipes/new_yorker.recipe +++ b/recipes/new_yorker.recipe @@ -42,9 +42,9 @@ class NewYorker(BasicNewsRecipe): ph = soup.find( 'div', attrs={'class': lambda x: x and 'cover-info' in x.split()}) if ph is not None: - img = ph.find('img', src=True) + img = ph.find('img') if img is not None: - self.cover_url = img['src'].replace('-320.jpg', '.jpg') + self.cover_url = img['data-src'] articles = [] current_section = 'Current Issue' feeds = []