From 6f463969b411d4c89e60f186ff7d954608bb64fa Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Sun, 11 May 2025 10:44:21 +0530 Subject: [PATCH] Update nzherald.recipe --- recipes/nzherald.recipe | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes/nzherald.recipe b/recipes/nzherald.recipe index 5ef9f53a4f..c156afe9b1 100644 --- a/recipes/nzherald.recipe +++ b/recipes/nzherald.recipe @@ -29,7 +29,9 @@ class NewZealandHerald(BasicNewsRecipe): + soup.find('img', attrs={'id': 'giornale-img'})['src'] ) - extra_css = '.article-media__caption {font-size: small;}' + extra_css = ''' + [data-test-ui="author--text--body"], .article-media__caption {font-size: small;} + ''' keep_only_tags = [ dict( @@ -65,6 +67,7 @@ class NewZealandHerald(BasicNewsRecipe): for x in img['data-srcset'].split(','): if '768w' in x: img['src'] = x.split()[0] + break else: img['src'] = img['data-srcset'].split(',')[-1].split()[0] return soup