diff --git a/recipes/new_scientist.recipe b/recipes/new_scientist.recipe index 8cc1ce3349..ccbc2fc73d 100644 --- a/recipes/new_scientist.recipe +++ b/recipes/new_scientist.recipe @@ -82,7 +82,7 @@ class NewScientist(BasicNewsRecipe): if time: time.name = 'div' for img in soup.findAll('img', attrs={'data-src':True}): - img['src'] = img['data-src'].replace('?width=1200', '?width=700') + img['src'] = img['data-src'].split('?')[0] + '?width=700' for figc in soup.findAll('figcaption'): for p in figc.findAll('p'): p.name = 'div' diff --git a/recipes/new_scientist_mag.recipe b/recipes/new_scientist_mag.recipe index c8ca809905..c1559e51e5 100644 --- a/recipes/new_scientist_mag.recipe +++ b/recipes/new_scientist_mag.recipe @@ -103,7 +103,7 @@ class NewScientist(BasicNewsRecipe): if time: time.name = 'div' for img in soup.findAll('img', attrs={'data-src':True}): - img['src'] = img['data-src'].replace('?width=1200', '?width=700') + img['src'] = img['data-src'].split('?')[0] + '?width=700' for figc in soup.findAll('figcaption'): for p in figc.findAll('p'): p.name = 'div'