Skip to content

Commit

Permalink
fix(nfo): python3.8 unsupported with expression
Browse files Browse the repository at this point in the history
  • Loading branch information
sqzw-x committed Feb 20, 2024
1 parent b314755 commit ca38e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/core/nfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def write_nfo(json_data, nfo_new_path, folder_new_path, file_path, edit_mode=Fal
if not os.path.exists(folder_new_path):
os.makedirs(folder_new_path)
delete_file(nfo_new_path) # 避免115出现重复文件
with (open(nfo_new_path, "wt", encoding='UTF-8') as code):
with open(nfo_new_path, "wt", encoding='UTF-8') as code:
print('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>', file=code)
print("<movie>", file=code)

Expand Down

0 comments on commit ca38e46

Please sign in to comment.