From efc438fbea787de1c441d3ebac34949ec64a132c Mon Sep 17 00:00:00 2001 From: Tristan Williams Date: Thu, 20 Mar 2025 09:23:13 -0400 Subject: Ensure UTF-8 encoding for _PLAYLIST_INDEX.txt --- sortashuffle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sortashuffle.py b/sortashuffle.py index bcd9373..6c8a1bc 100644 --- a/sortashuffle.py +++ b/sortashuffle.py @@ -39,6 +39,6 @@ for episode in SHUFFLED: os.symlink(episode, TARGET + "//" + str(count)) count += 1 -INDEX = open(TARGET + "//" + "_PLAYLIST_INDEX.txt", 'w') +INDEX = open(TARGET + "//" + "_PLAYLIST_INDEX.txt", 'w', encoding='utf-8') INDEX.write("\n".join(SHUFFLED)) INDEX.close() -- cgit v1.2.3