Skip already downloaded albums
This commit is contained in:
parent
a6e17d1fa7
commit
3c6f5e79ab
1 changed files with 6 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue