mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
tasks/multimedia-archive: update script to dump JSON with UTF
This commit is contained in:
parent
84f53a2f50
commit
57a35230e9
@ -97,9 +97,9 @@ if __name__ == "__main__":
|
||||
output_file = args.output
|
||||
if output_file:
|
||||
with open(output_file, mode="w", encoding="UTF-8") as file:
|
||||
json.dump(data, file, sort_keys=True, indent=2)
|
||||
json.dump(data, file, sort_keys=True, indent=2, ensure_ascii=False)
|
||||
else:
|
||||
print(json.dumps(data, sort_keys=True, indent=2))
|
||||
print(json.dumps(data, sort_keys=True, indent=2, ensure_ascii=False))
|
||||
|
||||
shutil.rmtree(tmpdir)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user