From 6ae25b4dbb63a0f91b89158063fe45059d3bf6ac Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Wed, 6 Oct 2021 12:53:21 -0700 Subject: [PATCH] [Dictionary] Be more specific on replacing Thanks Axas. --- dictionary/dictionary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dictionary/dictionary.py b/dictionary/dictionary.py index 3c12f7e..bfc9dde 100644 --- a/dictionary/dictionary.py +++ b/dictionary/dictionary.py @@ -127,7 +127,7 @@ class Dictionary(commands.Cog): if "window.INITIAL_STATE" in item.string: content = item.string content = content.lstrip("window.INITIAL_STATE =").rstrip(";") - content = content.replace("undefined", '"None"').replace("true", '"True"').replace("false", '"False"') + content = content.replace("undefined", '"None"').replace(": true", ': "True"').replace(": false", ': "False"') try: website_data = json.loads(content) except json.decoder.JSONDecodeError: