From 882fdb22cb9581b8e2c4f06f9ebf0383ba02ecf7 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Mon, 26 Jun 2023 21:56:42 +0200 Subject: [PATCH] fix duplicate output --- tidal_scrape.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tidal_scrape.py b/tidal_scrape.py index 5915c5a..772de14 100755 --- a/tidal_scrape.py +++ b/tidal_scrape.py @@ -80,8 +80,6 @@ def download_track( dl_path = f"{DL_PATH}/{track.album.name}/{track.name}.part" # type: ignore[reportOptionalMemberAccess] dest_path = f"{DEST_PATH}/{track.album.name}/{track.name}" # type: ignore[reportOptionalMemberAccess] - print(f"Downloading {track.name} - {track.artist.name}") # type: ignore[reportOptionalMemberAccess] - if os.path.exists(dest_path) and SKIP_DOWNLOADED: print(dest_path + " exists!") return True, "Skipping downloaded song" @@ -147,7 +145,7 @@ favorites = tidalapi.user.Favorites(session, user.id) tracks = favorites.tracks() for track in tracks: - print(f"Downloading {track.album.name} by {track.artist}") + print(f"Downloading {track.name} - {track.artist.name}") # type: ignore[reportOptionalMemberAccess] check, msg = download_track(track) print(msg) time.sleep(3)