Skip already downloaded albums

This commit is contained in:
Christoph Stahl 2025-08-10 22:34:45 +02:00
parent a6e17d1fa7
commit 3c6f5e79ab

View file

@ -157,6 +157,12 @@ class Qobuz:
artist = album.artist
album_title = album.title
tracks = album.tracks if album.tracks is not None else []
if os.path.exists(dest):
input(f"Destination {dest} already exists, skip download? [Y/n] ")
if input().strip().lower() != "n":
print("Skipping download.")
return
os.makedirs(dest, exist_ok=True)
print(f"Downloading album: {artist} - {album_title}")
for nr, track in enumerate(tracks):