mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update recipe for another change to the NYT todays paper page
This commit is contained in:
parent
aff999cd4b
commit
a385f0a2d9
@ -104,7 +104,7 @@ class NewYorkTimes(BasicNewsRecipe):
|
|||||||
|
|
||||||
def parse_todays_page(self):
|
def parse_todays_page(self):
|
||||||
soup = self.read_nyt_metadata()
|
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 = []
|
feeds = []
|
||||||
for i, h1 in enumerate(section.findAll('h1')):
|
for i, h1 in enumerate(section.findAll('h1')):
|
||||||
if i == 0:
|
if i == 0:
|
||||||
|
@ -104,7 +104,7 @@ class NewYorkTimes(BasicNewsRecipe):
|
|||||||
|
|
||||||
def parse_todays_page(self):
|
def parse_todays_page(self):
|
||||||
soup = self.read_nyt_metadata()
|
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 = []
|
feeds = []
|
||||||
for i, h1 in enumerate(section.findAll('h1')):
|
for i, h1 in enumerate(section.findAll('h1')):
|
||||||
if i == 0:
|
if i == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user