]> git.lizzy.rs Git - nhentai.git/commitdiff
Fixed if user add white spaces
authorAlocks <alocksmasao@gmail.com>
Sat, 5 Oct 2019 18:00:33 +0000 (15:00 -0300)
committerGitHub <noreply@github.com>
Sat, 5 Oct 2019 18:00:33 +0000 (15:00 -0300)
nhentai/parser.py

index 433434b33f460eec3d56a8f32dcf7b08b0bb4051..cc4f74ce0188c64adfd4e53fd7902f948a92a825 100644 (file)
@@ -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))