mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
66c90b8cb0
commit
28138dcb9e
@ -464,7 +464,7 @@ class BasicNewsRecipe(Recipe):
|
||||
if url and url.startswith('http://'):
|
||||
return url
|
||||
ans = article.get('link', None)
|
||||
if not ans and article.links:
|
||||
if not ans and getattr(article, 'links', None):
|
||||
for item in article.links:
|
||||
if item.get('rel', 'alternate') == 'alternate':
|
||||
ans = item['href']
|
||||
|
Loading…
x
Reference in New Issue
Block a user