Copy list when open file

Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
2024-10-26 13:28:21 +07:00
parent cbf8ae41f0
commit 7afd00430e

View File

@@ -35,8 +35,8 @@ def main():
try: try:
with open(filename, encoding="utf-8") as f: with open(filename, encoding="utf-8") as f:
temp = load(f) temp = load(f)
video_list = temp video_list = temp.copy()
fl_video_list = temp fl_video_list = temp.copy()
except decoder.JSONDecodeError: except decoder.JSONDecodeError:
print("syntax error, check file") print("syntax error, check file")
sysexit() sysexit()