From 4374ff23806e8a44df6638c8cf8d2f63109807aa Mon Sep 17 00:00:00 2001 From: unkn_wn <51942695+unkn0w7n@users.noreply.github.com> Date: Tue, 29 Jul 2025 14:42:28 +0530 Subject: [PATCH] Update wsj_news.recipe cover source. --- recipes/wsj_news.recipe | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes/wsj_news.recipe b/recipes/wsj_news.recipe index c5b1bf4262..74235b8637 100644 --- a/recipes/wsj_news.recipe +++ b/recipes/wsj_news.recipe @@ -135,15 +135,15 @@ class WSJ(BasicNewsRecipe): from calibre import browser from calibre.utils.img import save_cover_data_to br = browser() - raw = br.open('https://wsjtodaysedition.cmail19.com/t/d-e-suujjg-thithlkhlr-r/') + raw = br.open('https://frontpages.freedomforum.org/newspapers/wsj-The_Wall_Street_Journal') soup = BeautifulSoup(raw.read()) cu = soup.find( 'img', attrs={ - 'class': 'responsive-img', - 'src': lambda x: x and 'WSJNewsPaper' in x - } - )['src'] + 'alt': 'Front Page Image', + 'src': lambda x: x and x.endswith('front-page-large.jpg'), + }, + )['src'].replace('-large', '-medium') self.report_progress(1, _('Downloading cover from %s')%cu) with closing(br.open(cu, timeout=self.timeout)) as r: cdata = r.read()