From 0b9327a3594b20c6098bebb8e7fd4ade9b2868b4 Mon Sep 17 00:00:00 2001 From: bobbysteel Date: Thu, 7 Dec 2017 15:55:42 +0000 Subject: [PATCH 1/4] Fix cover resolution & add log line --- recipes/economist_free.recipe | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index 0116528449..00c5ecc889 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -171,7 +171,9 @@ class Economist(BasicNewsRecipe): if img is not None: for part in img['srcset'].split(): if part.startswith('//'): + part = part.replace('200-width','1200-width') self.cover_url = 'https:' + part + self.log('Got cover: ',self.cover_url) break sections = soup.findAll( From ac94d00ed26726e6da63b1d76d6283fe969167fa Mon Sep 17 00:00:00 2001 From: bobbysteel Date: Thu, 7 Dec 2017 15:56:17 +0000 Subject: [PATCH 2/4] Fix cover resolution & add log line --- recipes/economist.recipe | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index 0116528449..00c5ecc889 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -171,7 +171,9 @@ class Economist(BasicNewsRecipe): if img is not None: for part in img['srcset'].split(): if part.startswith('//'): + part = part.replace('200-width','1200-width') self.cover_url = 'https:' + part + self.log('Got cover: ',self.cover_url) break sections = soup.findAll( From 44eceb5e579c6dffa4eae15f2042f37d96f82f18 Mon Sep 17 00:00:00 2001 From: bobbysteel Date: Thu, 7 Dec 2017 16:20:58 +0000 Subject: [PATCH 3/4] Update economist_free.recipe --- recipes/economist_free.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index 00c5ecc889..ea11bc470b 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -171,7 +171,7 @@ class Economist(BasicNewsRecipe): if img is not None: for part in img['srcset'].split(): if part.startswith('//'): - part = part.replace('200-width','1200-width') + part = part.replace('200-width','640-width') self.cover_url = 'https:' + part self.log('Got cover: ',self.cover_url) break From e4ef6b8acfd44aec4fb5ec6f47e24d84481582f5 Mon Sep 17 00:00:00 2001 From: bobbysteel Date: Thu, 7 Dec 2017 16:21:16 +0000 Subject: [PATCH 4/4] Update economist.recipe --- recipes/economist.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index 00c5ecc889..ea11bc470b 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -171,7 +171,7 @@ class Economist(BasicNewsRecipe): if img is not None: for part in img['srcset'].split(): if part.startswith('//'): - part = part.replace('200-width','1200-width') + part = part.replace('200-width','640-width') self.cover_url = 'https:' + part self.log('Got cover: ',self.cover_url) break