From 73a84d141722cc9cb9875e5c2c9f9b6e92e4768b Mon Sep 17 00:00:00 2001 From: Himanshu Goel Date: Fri, 28 Oct 2022 22:59:57 -0400 Subject: [PATCH] Minor tag concatenation bug fix --- gelbooru_poster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gelbooru_poster.py b/gelbooru_poster.py index 745d681..414ae16 100644 --- a/gelbooru_poster.py +++ b/gelbooru_poster.py @@ -43,7 +43,7 @@ class BotInstance: gelbooru_tags_exclude = "+" + self.gelbooru_tags_exclude else: gelbooru_tags_exclude = "" - gelbooru_json = requests.get(self.gelbooru_url + self.gelbooru_tags + gelbooru_tags_exclude + "&pid=" + str(page_number)).json() + gelbooru_json = requests.get(self.gelbooru_url + self.gelbooru_tags + '+' + gelbooru_tags_exclude + "&pid=" + str(page_number)).json() max_pages = gelbooru_json['@attributes']['count'] // 100 + (1 if gelbooru_json['@attributes']['count'] % 100 != 0 else 0) # Make sure there are images on the page if 'post' not in gelbooru_json: