diff --git a/qobuz_dl/downloader.py b/qobuz_dl/downloader.py index ab5a78d..ba132e9 100644 --- a/qobuz_dl/downloader.py +++ b/qobuz_dl/downloader.py @@ -79,9 +79,13 @@ def get_title(item_dict): def get_extra(i, dirn, extra="cover.jpg"): + extra_file = os.path.join(dirn, extra) + if os.path.isfile(extra_file): + print(extra.split(".")[0].title() + " already downloaded") + return tqdm_download( i.replace("_600.", "_org."), - os.path.join(dirn, extra), + extra_file, "Downloading " + extra.split(".")[0], ) diff --git a/requirements.txt b/requirements.txt index a43699a..2100f8a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -pathvalidate==2.3.0 -requests==2.24.0 -mutagen==1.45.1 -tqdm==4.48.2 -pick==0.6.7 -beautifulsoup4==4.9.3 +pathvalidate +requests +mutagen +tqdm +pick +beautifulsoup4