mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-03-29 04:42:14 -04:00
Handle change to newsweek index page
This commit is contained in:
parent
65eafd1f7c
commit
d00558765d
@ -75,7 +75,10 @@ class Newsweek(BasicNewsRecipe):
|
||||
sections = defaultdict(list)
|
||||
for block in ('magazine-magazine-issue-story-list', 'editors-pick'):
|
||||
div = root.xpath(
|
||||
'//div[@id="block-nw-{}"]'.format(block))[0]
|
||||
'//div[@id="block-nw-{}"]'.format(block))
|
||||
if not div:
|
||||
continue
|
||||
div = div[0]
|
||||
for a in div.xpath(href_xpath):
|
||||
title = self.tag_to_string(a)
|
||||
article = a.xpath('ancestor::article')[0]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user