mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 11:01:17 +02:00
oops
This commit is contained in:
parent
af26482b6d
commit
114c364f03
@ -48,8 +48,7 @@ def login_parser(username, password):
|
|||||||
html = BeautifulSoup(s.get(constant.FAV_URL).content, 'html.parser')
|
html = BeautifulSoup(s.get(constant.FAV_URL).content, 'html.parser')
|
||||||
count = html.find('span', attrs={'class': 'count'})
|
count = html.find('span', attrs={'class': 'count'})
|
||||||
if not count:
|
if not count:
|
||||||
logger.error("Can't get your number of favorited doujins. Did the login
|
logger.error("Can't get your number of favorited doujins. Did the login failed?")
|
||||||
failed?")
|
|
||||||
|
|
||||||
count = int(count.text.strip('(').strip(')'))
|
count = int(count.text.strip('(').strip(')'))
|
||||||
if count == 0:
|
if count == 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user