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)))