This commit is contained in:
deathbybandaid 2019-09-20 08:11:09 -04:00
parent 89f06a88ef
commit 0f9e46c47a

View File

@ -92,7 +92,6 @@ class BotGif():
# Replace spaces in search query
searchdict["searchquery"] = urllib.request.pathname2url(searchdict["query"])
logs.log('SpiceBot_Gif', searchdict["searchquery"], True)
# set api usage
if not isinstance(searchdict['gifsearch'], list):
@ -131,6 +130,8 @@ class BotGif():
verifygoodlinks.append(gifresult)
self.valid_api[currentapi]["cache"][str(searchdict["searchquery"])] = verifygoodlinks
logs.log('SpiceBot_Gif', str(searchfor), True)
if searchfor:
self.valid_api[currentapi]["cache"][str(searchdict["searchquery"]).lower()] = []
# assemble url