mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
b77b2e3bd8
@ -208,7 +208,7 @@ class NatGeo(BasicNewsRecipe):
|
||||
articles = ans.setdefault(section, [])
|
||||
articles.append({'title': title, 'url': url})
|
||||
for promo in soup.findAll(**classes('OneUpPromoCard__Content')):
|
||||
if promo.find('a', attrs={'href': True}):
|
||||
if promo.find('a', attrs={'href': True}) and promo.a.get('href'):
|
||||
url = promo.a['href']
|
||||
section = self.tag_to_string(promo.find(**classes('SectionLabel')))
|
||||
title = self.tag_to_string(promo.find(**classes('Card__Content__Heading')))
|
||||
|
Loading…
x
Reference in New Issue
Block a user