From bea77ba2414ba0962a86b5d14faca4d1e1859c69 Mon Sep 17 00:00:00 2001 From: vitiko98 Date: Tue, 15 Dec 2020 13:07:21 -0400 Subject: [PATCH] Close #30; remove versions from requirements.txt --- qobuz_dl/downloader.py | 6 +++++- requirements.txt | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) 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