From db6d45efe01e4e93c02a015ae5c6f914378c75f1 Mon Sep 17 00:00:00 2001 From: Ricter Zheng Date: Fri, 19 Oct 2018 10:55:21 +0800 Subject: [PATCH] fix bug #34 --- nhentai/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nhentai/parser.py b/nhentai/parser.py index f911c17..eaf6de9 100644 --- a/nhentai/parser.py +++ b/nhentai/parser.py @@ -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 []