From a2079a766c4d78f0bf6e954975485d5b73654239 Mon Sep 17 00:00:00 2001 From: sadorowo Date: Sun, 25 Feb 2024 19:43:20 +0100 Subject: [PATCH] add: save using utf8 encoding --- __main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__main__.py b/__main__.py index 1ae0fed..ffdff0b 100644 --- a/__main__.py +++ b/__main__.py @@ -158,7 +158,7 @@ def process(arguments): remove_duplicates(playlist) # save playlist - with open(arguments.input, "w+") as f: + with open(arguments.input, "w+", encoding="utf-8") as f: f.write(playlist.to_m3u_plus_playlist()) print("All done!")