mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-19 10:21:19 +02:00
fix bug
This commit is contained in:
parent
043f391d04
commit
e306d50b7e
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,4 +4,4 @@ build
|
||||
dist/
|
||||
*.egg-info
|
||||
.python-version
|
||||
|
||||
.DS_Store
|
||||
|
@ -43,7 +43,7 @@ def doujinshi_parser(id_):
|
||||
doujinshi['subtitle'] = subtitle.text if subtitle else ''
|
||||
|
||||
doujinshi_cover = html.find('div', attrs={'id': 'cover'})
|
||||
img_id = re.search('/galleries/([\d]+)/cover\.(jpg|png)$', doujinshi_cover.a.img['src'])
|
||||
img_id = re.search('/galleries/([\d]+)/cover\.(jpg|png)$', doujinshi_cover.a.img.attrs['data-src'])
|
||||
if not img_id:
|
||||
logger.critical('Tried yo get image id failed')
|
||||
exit(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user