From cdb8e6025fd43bbd92e2745767fc06de84ec1be1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 17 Mar 2020 22:59:20 +0530 Subject: [PATCH] Remove width and height attributes from economist download --- recipes/economist.recipe | 2 +- recipes/economist_free.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index e3176b9793..0e01e31165 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -150,7 +150,7 @@ class Economist(BasicNewsRecipe): ] keep_only_tags = [dict(name='article', id=lambda x: not x)] no_stylesheets = True - remove_attributes = ['data-reactid'] + remove_attributes = ['data-reactid', 'width', 'height'] # economist.com has started throttling after about 60% of the total has # downloaded with connection reset by peer (104) errors. delay = 1 diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index e3176b9793..0e01e31165 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -150,7 +150,7 @@ class Economist(BasicNewsRecipe): ] keep_only_tags = [dict(name='article', id=lambda x: not x)] no_stylesheets = True - remove_attributes = ['data-reactid'] + remove_attributes = ['data-reactid', 'width', 'height'] # economist.com has started throttling after about 60% of the total has # downloaded with connection reset by peer (104) errors. delay = 1