Copy list when open file
Signed-off-by: Lev Rusanov <30170278+JDM170@users.noreply.github.com>
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user