add: save using utf8 encoding
This commit is contained in:
parent
7a5a60defa
commit
e3ccbac03a
@ -100,7 +100,7 @@ def save_result(
|
|||||||
input_path: str,
|
input_path: str,
|
||||||
playlist: tv_playlist.M3UPlaylist
|
playlist: tv_playlist.M3UPlaylist
|
||||||
):
|
):
|
||||||
with open(input_path, "w+") as f:
|
with open(input_path, "w+", encoding="utf-8") as f:
|
||||||
f.write(playlist.to_m3u_plus_playlist())
|
f.write(playlist.to_m3u_plus_playlist())
|
||||||
|
|
||||||
print("File overwritten.")
|
print("File overwritten.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user