]> git.lizzy.rs Git - nhentai.git/commitdiff
fix bug in tag parser #70
authorRicterZ <ricterzheng@gmail.com>
Sun, 28 Jul 2019 03:48:47 +0000 (11:48 +0800)
committersymant233 <symant233@gmail.com>
Sun, 4 Aug 2019 14:39:31 +0000 (22:39 +0800)
nhentai/parser.py

index b96e70757a546b86e8f1a829ecaa931da536a96d..cb53cc8894ac906f22d1d7c27cbd6b109f16dac4 100644 (file)
@@ -201,9 +201,9 @@ def tag_parser(tag_name, max_page=1):
 
     for p in range(1, max_page + 1):
         logger.debug('Fetching page {0} for doujinshi with tag \'{1}\''.format(p, tag_name))
-        response = request('get', url='%s/%s?page=%d' % (constant.TAG_URL, tag_name, p)).content
+        response = request('get', url='%s/%s/?page=%d' % (constant.TAG_URL, tag_name, p)).content
 
-        result = _get_title_and_id(response)
+        result += _get_title_and_id(response)
         if not result:
             logger.error('Cannot find doujinshi id of tag \'{0}\''.format(tag_name))
             return