This commit is contained in:
Nikolaj Danger
2021-02-08 11:09:56 +01:00
parent 9320b1fc88
commit 5b69982521

View File

@ -88,11 +88,11 @@ class Funcs():
with open("resources/bedreNetflix/oldMessage"+str(channel.id),"r") as f: with open("resources/bedreNetflix/oldMessage"+str(channel.id),"r") as f:
data = json.load(f) data = json.load(f)
except: except:
return False, None return False, None, None
if data["messageID"] == message.id: if data["messageID"] == message.id:
if "imdbIds" in data: if "imdbIds" in data:
return True, True, data["imdbIds"] return True, True, data["imdbIds"]
else: else:
return True, False, data["imdbNames"] return True, False, data["imdbNames"]
else: else:
return False, None return False, None, None