From 9ff181ae6e475c074715141e03e8b6a4bd40b0c4 Mon Sep 17 00:00:00 2001 From: Alex Camilleri Date: Mon, 20 Oct 2025 09:36:04 +0200 Subject: [PATCH] Playlist name in txt output (#140) --- .gitignore | 1 + src/spotify_to_tidal/sync.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 65de735..aea6eda 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ config.yml config.yaml .cache* .session.yml +songs not found.txt # Byte-compiled / optimized / DLL files __pycache__/ diff --git a/src/spotify_to_tidal/sync.py b/src/spotify_to_tidal/sync.py index 4494dbf..4d0c482 100755 --- a/src/spotify_to_tidal/sync.py +++ b/src/spotify_to_tidal/sync.py @@ -281,7 +281,9 @@ async def search_new_tracks_on_tidal(tidal_session: tidalapi.Session, spotify_tr color = ('\033[91m', '\033[0m') print(color[0] + "Could not find the track " + song404[-1] + color[1]) file_name = "songs not found.txt" + header = f"==========================\nPlaylist: {playlist_name}\n==========================\n" with open(file_name, "a", encoding="utf-8") as file: + file.write(header) for song in song404: file.write(f"{song}\n")