mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'enlarge_nature_cover' of https://github.com/jn8029/calibre
This commit is contained in:
commit
78b2f586ac
@ -50,6 +50,13 @@ class Nature(BasicNewsRecipe):
|
||||
self.cover_url = 'https:' + soup.find(
|
||||
'img', attrs={'data-test': check_words('issue-cover-image')}
|
||||
)['src']
|
||||
try:
|
||||
self.cover_url = self.cover_url.replace("w200","w500") # enlarge cover size resolution
|
||||
except:
|
||||
"""
|
||||
failed, img src might have changed, use default width 200
|
||||
"""
|
||||
pass
|
||||
section_tags = soup.find(
|
||||
'div', {'data-container-type': check_words('issue-section-list')}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user