From 7afd00430eec7103d38eb2d903099a3ca2eab2a7 Mon Sep 17 00:00:00 2001 From: Lev Rusanov <30170278+JDM170@users.noreply.github.com> Date: Sat, 26 Oct 2024 13:28:21 +0700 Subject: [PATCH] Copy list when open file Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com> --- pornhub_dl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pornhub_dl.py b/pornhub_dl.py index aa5a21b..b73afa1 100644 --- a/pornhub_dl.py +++ b/pornhub_dl.py @@ -35,8 +35,8 @@ def main(): try: with open(filename, encoding="utf-8") as f: temp = load(f) - video_list = temp - fl_video_list = temp + video_list = temp.copy() + fl_video_list = temp.copy() except decoder.JSONDecodeError: print("syntax error, check file") sysexit()