From 6e2a25cf55839996a5ccd383c0487362ffcd1f6f Mon Sep 17 00:00:00 2001
From: RicterZ <ricterzheng@gmail.com>
Date: Sun, 28 Jul 2019 11:48:47 +0800
Subject: [PATCH] fix bug in tag parser #70

---
 nhentai/parser.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nhentai/parser.py b/nhentai/parser.py
index b96e707..cb53cc8 100644
--- a/nhentai/parser.py
+++ b/nhentai/parser.py
@@ -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