Skip to content

Commit

Permalink
Use utf-8 encoding for tracks not found
Browse files Browse the repository at this point in the history
  • Loading branch information
timrae committed Sep 9, 2024
1 parent 5e36453 commit da1bc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spotify_to_tidal/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ async def _run_rate_limiter(semaphore):
color = ('\033[91m', '\033[0m')
print(color[0] + "Could not find the track " + song404[-1] + color[1])
file_name = "songs not found.txt"
with open(file_name, "a") as file:
with open(file_name, "a", encoding="utf-8") as file:
for song in song404:
file.write(f"{song}\n")

Expand Down

0 comments on commit da1bc2e

Please sign in to comment.