From b57f9e47c01c1f8688eef41087da282b8c9e9a54 Mon Sep 17 00:00:00 2001 From: SikiFn Date: Thu, 21 Sep 2023 15:34:51 +0300 Subject: [PATCH] Fix Login Issue Logging in was causing a problem in the latest version due to instagram changes. --- pyinstalive/helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyinstalive/helpers.py b/pyinstalive/helpers.py index d35ac77..ad8aba2 100644 --- a/pyinstalive/helpers.py +++ b/pyinstalive/helpers.py @@ -86,10 +86,10 @@ def get_shared_data(data): match_str = match.group(1) return json.loads(match_str).get("config") else: - match = re.search(r"\"raw\":\"({[^\n]*\\\"})", data) + match = re.search(r"\"raw\":\"({[^\n]*})\",\"", data) if match: match_str = string_escape(match.group(1)) - return json.loads(match_str) + return json.loads(match_str).get("config") def lock_exists(): return os.path.isfile(os.path.join(globals.config.download_path, globals.download.download_user + '.lock')) @@ -298,4 +298,4 @@ def remove_temp_folder(): try: shutil.rmtree(globals.download.segments_path) except Exception as e: - logger.error("Could not remove segment folder: {:s}".format(str(e))) \ No newline at end of file + logger.error("Could not remove segment folder: {:s}".format(str(e)))