From 3c6f5e79ab2b675ef5a0c3d5c49374136b7964f9 Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Sun, 10 Aug 2025 22:34:45 +0200 Subject: [PATCH] Skip already downloaded albums --- src/qobuz_dl_remote/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qobuz_dl_remote/main.py b/src/qobuz_dl_remote/main.py index 2d6e08d..dc5e234 100755 --- a/src/qobuz_dl_remote/main.py +++ b/src/qobuz_dl_remote/main.py @@ -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):