From a385f0a2d966418183d4b4ebfa26b4c345b25ec0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Feb 2018 06:56:43 +0530 Subject: [PATCH] Update recipe for another change to the NYT todays paper page --- recipes/nytimes.recipe | 2 +- recipes/nytimes_sub.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/nytimes.recipe b/recipes/nytimes.recipe index 1bb8ff280b..ef4f13c5f6 100644 --- a/recipes/nytimes.recipe +++ b/recipes/nytimes.recipe @@ -104,7 +104,7 @@ class NewYorkTimes(BasicNewsRecipe): def parse_todays_page(self): soup = self.read_nyt_metadata() - section = soup.find(id='collection-todays-new-york-times') + section = soup.find(id=lambda x: x and x.startswith('collection-todays-new-york-times')) feeds = [] for i, h1 in enumerate(section.findAll('h1')): if i == 0: diff --git a/recipes/nytimes_sub.recipe b/recipes/nytimes_sub.recipe index fe6ddbf699..7f09e7048d 100644 --- a/recipes/nytimes_sub.recipe +++ b/recipes/nytimes_sub.recipe @@ -104,7 +104,7 @@ class NewYorkTimes(BasicNewsRecipe): def parse_todays_page(self): soup = self.read_nyt_metadata() - section = soup.find(id='collection-todays-new-york-times') + section = soup.find(id=lambda x: x and x.startswith('collection-todays-new-york-times')) feeds = [] for i, h1 in enumerate(section.findAll('h1')): if i == 0: