mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 11:01:17 +02:00
try to fix #361
This commit is contained in:
parent
bb41e502c1
commit
1f3528afad
@ -142,7 +142,7 @@ def doujinshi_parser(id_, counter=0):
|
|||||||
title = doujinshi_info.find('h1').text
|
title = doujinshi_info.find('h1').text
|
||||||
pretty_name = doujinshi_info.find('h1').find('span', attrs={'class': 'pretty'}).text
|
pretty_name = doujinshi_info.find('h1').find('span', attrs={'class': 'pretty'}).text
|
||||||
subtitle = doujinshi_info.find('h2')
|
subtitle = doujinshi_info.find('h2')
|
||||||
favorite_counts = doujinshi_info.find('span', class_='nobold').find('span', class_='count')
|
favorite_counts = str(doujinshi_info.find('span', class_='nobold').find('span', class_='count'))
|
||||||
if favorite_counts is None:
|
if favorite_counts is None:
|
||||||
favorite_counts = '0'
|
favorite_counts = '0'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user