From 57a35230e9e9399e85688833458e8d9ffbe5f9f2 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 18 Aug 2022 15:18:57 +0800 Subject: [PATCH] tasks/multimedia-archive: update script to dump JSON with UTF --- .../nixos/tasks/multimedia-archive/convert-newpipe-db-to-json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nixos/tasks/multimedia-archive/convert-newpipe-db-to-json b/modules/nixos/tasks/multimedia-archive/convert-newpipe-db-to-json index 931c66a6..59fcefd5 100755 --- a/modules/nixos/tasks/multimedia-archive/convert-newpipe-db-to-json +++ b/modules/nixos/tasks/multimedia-archive/convert-newpipe-db-to-json @@ -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)