diff options
author | Tristan Williams <tgwil@tgwil.net> | 2025-03-20 09:23:13 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2025-03-20 09:23:13 -0400 |
commit | efc438fbea787de1c441d3ebac34949ec64a132c (patch) | |
tree | af72ffb746c387dda61abc7108a82e737607ec45 | |
parent | Update instructions (diff) | |
download | sortashuffle-efc438fbea787de1c441d3ebac34949ec64a132c.tar.gz sortashuffle-efc438fbea787de1c441d3ebac34949ec64a132c.tar.bz2 sortashuffle-efc438fbea787de1c441d3ebac34949ec64a132c.zip |
Ensure UTF-8 encoding for _PLAYLIST_INDEX.txt
-rw-r--r-- | sortashuffle.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
39 | os.symlink(episode, TARGET + "//" + str(count)) | 39 | os.symlink(episode, TARGET + "//" + str(count)) |
40 | count += 1 | 40 | count += 1 |
41 | 41 | ||
42 | INDEX = open(TARGET + "//" + "_PLAYLIST_INDEX.txt", 'w') | 42 | INDEX = open(TARGET + "//" + "_PLAYLIST_INDEX.txt", 'w', encoding='utf-8') |
43 | INDEX.write("\n".join(SHUFFLED)) | 43 | INDEX.write("\n".join(SHUFFLED)) |
44 | INDEX.close() | 44 | INDEX.close() |