]> git.lizzy.rs Git - nhentai.git/commitdiff
fix bug #34
authorRicter Zheng <RicterZheng@gmail.com>
Fri, 19 Oct 2018 02:55:21 +0000 (10:55 +0800)
committerGitHub <noreply@github.com>
Fri, 19 Oct 2018 02:55:21 +0000 (10:55 +0800)
nhentai/parser.py

index f911c174452bb05d5492bfbf4ca1d51389cd4929..eaf6de91ea73fdc6d868aad1af6502b550284e33 100644 (file)
@@ -50,7 +50,7 @@ def login_parser(username, password):
     if not count:
         logger.error("Can't get your number of favorited doujins. Did the login failed?")
 
-    count = int(count.text.strip('(').strip(')'))
+    count = int(count.text.strip('(').strip(')').replace(',', ''))
     if count == 0:
         logger.warning('No favorites found')
         return []