mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #5290 (Atlantic Feed Broken)
This commit is contained in:
parent
d0a546b3d6
commit
0dd72fe725
@ -77,8 +77,9 @@ class TheAtlantic(BasicNewsRecipe):
|
|||||||
if poems:
|
if poems:
|
||||||
feeds.append(('Poems', poems))
|
feeds.append(('Poems', poems))
|
||||||
|
|
||||||
self.log('Found section: Advice')
|
|
||||||
div = soup.find(id='advice')
|
div = soup.find(id='advice')
|
||||||
|
if div is not None:
|
||||||
|
self.log('Found section: Advice')
|
||||||
title = self.tag_to_string(div.find('h4'))
|
title = self.tag_to_string(div.find('h4'))
|
||||||
url = 'http://www.theatlantic.com'+div.find('a')['href']
|
url = 'http://www.theatlantic.com'+div.find('a')['href']
|
||||||
desc = self.tag_to_string(div.find('p'))
|
desc = self.tag_to_string(div.find('p'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user