From 7158d21c93b17beea41fd71109f4eb136e9c957e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Apr 2020 08:40:03 +0530 Subject: [PATCH] WSJ changes its index page markup a bit Fixes #1871704 [WSJ fetch news: no articles found](https://bugs.launchpad.net/calibre/+bug/1871704) --- recipes/wsj.recipe | 2 +- recipes/wsj_free.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index fd1c6b32d9..55820d1286 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -238,7 +238,7 @@ class WSJ(BasicNewsRecipe): break feeds = [] - for a in CSSSelect('.WSJTheme--nav-container--sPVwT3Fi .WSJTheme--section-link--XGDsdx5q'): + for a in CSSSelect('.WSJTheme--nav-container--2qF6xQnZ .WSJTheme--section-link--3VznjgTM'): frontpage = a.get('href').endswith('frontpage') title = self.tag_to_string(a).capitalize().strip().replace('U.s.', 'U.S.') if not title: diff --git a/recipes/wsj_free.recipe b/recipes/wsj_free.recipe index 06b0312c1d..bb66d760ec 100644 --- a/recipes/wsj_free.recipe +++ b/recipes/wsj_free.recipe @@ -238,7 +238,7 @@ class WSJ(BasicNewsRecipe): break feeds = [] - for a in CSSSelect('.WSJTheme--nav-container--sPVwT3Fi .WSJTheme--section-link--XGDsdx5q'): + for a in CSSSelect('.WSJTheme--nav-container--2qF6xQnZ .WSJTheme--section-link--3VznjgTM'): frontpage = a.get('href').endswith('frontpage') title = self.tag_to_string(a).capitalize().strip().replace('U.s.', 'U.S.') if not title: