mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
bd109dd497
commit
7cec7f612b
@ -191,8 +191,9 @@ class NewYorkTimes(BasicNewsRecipe):
|
|||||||
section_title = self.tag_to_string(h2)
|
section_title = self.tag_to_string(h2)
|
||||||
self.log('\nFound section:', section_title)
|
self.log('\nFound section:', section_title)
|
||||||
if i == 0:
|
if i == 0:
|
||||||
|
articles = []
|
||||||
for div in section.findAll('div', recursive=False):
|
for div in section.findAll('div', recursive=False):
|
||||||
articles = list(self.parse_todays_sections(div.find('ol')))
|
articles += list(self.parse_todays_sections(div.find('ol')))
|
||||||
else:
|
else:
|
||||||
articles = list(self.parse_todays_sections(section.find('ol')))
|
articles = list(self.parse_todays_sections(section.find('ol')))
|
||||||
if articles:
|
if articles:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user