This commit is contained in:
Ricter Z 2017-03-17 20:14:42 +08:00
parent 043f391d04
commit e306d50b7e
2 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -4,4 +4,4 @@ build
dist/ dist/
*.egg-info *.egg-info
.python-version .python-version
.DS_Store

View File

@ -43,7 +43,7 @@ def doujinshi_parser(id_):
doujinshi['subtitle'] = subtitle.text if subtitle else '' doujinshi['subtitle'] = subtitle.text if subtitle else ''
doujinshi_cover = html.find('div', attrs={'id': 'cover'}) 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: if not img_id:
logger.critical('Tried yo get image id failed') logger.critical('Tried yo get image id failed')
exit(1) exit(1)