From 01caa8d4e5bd8ad89389e4bc1baead74aef316d5 Mon Sep 17 00:00:00 2001 From: Alocks Date: Sat, 5 Oct 2019 15:00:33 -0300 Subject: [PATCH] Fixed if user add white spaces --- nhentai/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nhentai/parser.py b/nhentai/parser.py index 433434b..cc4f74c 100644 --- a/nhentai/parser.py +++ b/nhentai/parser.py @@ -199,7 +199,7 @@ def tag_parser(tag_name, max_page=1, index=0): tag_name = tag_name.lower() tag_name = tag_name.replace(' ', '-') if ',' in tag_name: - tag_name = tag_name.split(',') + tag_name = [i.strip() for i in string.split(',')] for p in range(1, max_page + 1): logger.debug('Fetching page {0} for doujinshi with tag \'{1}\''.format(p, tag_name))