From 96742046ba807fd8d9e75c0331c153995418ae1f Mon Sep 17 00:00:00 2001 From: Mijael Viricochea Date: Thu, 8 Sep 2022 16:30:41 -0400 Subject: [PATCH 1/3] Fix error when cover is not present --- TIDALDL-PY/tidal_dl/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TIDALDL-PY/tidal_dl/events.py b/TIDALDL-PY/tidal_dl/events.py index 8b0d94e..b65ddeb 100644 --- a/TIDALDL-PY/tidal_dl/events.py +++ b/TIDALDL-PY/tidal_dl/events.py @@ -30,7 +30,7 @@ def start_album(obj: Album): tracks, videos = TIDAL_API.getItems(obj.id, Type.Album) if SETTINGS.saveAlbumInfo: downloadAlbumInfo(obj, tracks) - if SETTINGS.saveCovers: + if SETTINGS.saveCovers and obj.cover is not None: downloadCover(obj) downloadTracks(tracks, obj) downloadVideos(videos, obj) From 7e5b6d22c48be9ed0e8dc6734334ea0628092eb1 Mon Sep 17 00:00:00 2001 From: Mijael Viricochea Parra Date: Fri, 9 Sep 2022 21:31:01 -0400 Subject: [PATCH 2/3] Build file added for Windows --- .gitignore | 1 + build.cmd | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 build.cmd diff --git a/.gitignore b/.gitignore index 4606030..812f3d4 100644 --- a/.gitignore +++ b/.gitignore @@ -67,6 +67,7 @@ TIDALDL-PY/__pycache__/setup.cpython-37.pyc /TIDALDL-PY/settings.json /TIDALDL-PY/usersettings.json /TIDALDL-PY/__init__.spec +/TIDALDL-PY/tidal-dl.spec TIDALDL-PY/tidal_dl/lang/__pycache__/__init__.cpython-37.pyc TIDALDL-PY/tidal_dl/lang/__pycache__/arabic.cpython-37.pyc TIDALDL-PY/tidal_dl/lang/__pycache__/chinese.cpython-37.pyc diff --git a/build.cmd b/build.cmd new file mode 100644 index 0000000..18bcabb --- /dev/null +++ b/build.cmd @@ -0,0 +1,15 @@ +rmdir /s /q dist +rmdir /s /q build +rmdir /s /q __init__.spec + +cd TIDALDL-PY +rmdir /s /q __init__.spec +rmdir /s /q dist +rmdir /s /q build +rmdir /s /q exe +rmdir /s /q MANIFEST.in +rmdir /s /q *.egg-info + +python setup.py sdist bdist_wheel +python -m PyInstaller -F tidal_dl/__init__.py -n "tidal-dl" --distpath "exe" +pip uninstall -y tidal-dl \ No newline at end of file From a275275cb66ea100f0c12fd9d8d03bd312682e27 Mon Sep 17 00:00:00 2001 From: Mijael Viricochea Parra Date: Mon, 12 Sep 2022 21:32:48 -0400 Subject: [PATCH 3/3] Revert "Build file added for Windows" This reverts commit 7e5b6d22c48be9ed0e8dc6734334ea0628092eb1. --- .gitignore | 1 - build.cmd | 15 --------------- 2 files changed, 16 deletions(-) delete mode 100644 build.cmd diff --git a/.gitignore b/.gitignore index 812f3d4..4606030 100644 --- a/.gitignore +++ b/.gitignore @@ -67,7 +67,6 @@ TIDALDL-PY/__pycache__/setup.cpython-37.pyc /TIDALDL-PY/settings.json /TIDALDL-PY/usersettings.json /TIDALDL-PY/__init__.spec -/TIDALDL-PY/tidal-dl.spec TIDALDL-PY/tidal_dl/lang/__pycache__/__init__.cpython-37.pyc TIDALDL-PY/tidal_dl/lang/__pycache__/arabic.cpython-37.pyc TIDALDL-PY/tidal_dl/lang/__pycache__/chinese.cpython-37.pyc diff --git a/build.cmd b/build.cmd deleted file mode 100644 index 18bcabb..0000000 --- a/build.cmd +++ /dev/null @@ -1,15 +0,0 @@ -rmdir /s /q dist -rmdir /s /q build -rmdir /s /q __init__.spec - -cd TIDALDL-PY -rmdir /s /q __init__.spec -rmdir /s /q dist -rmdir /s /q build -rmdir /s /q exe -rmdir /s /q MANIFEST.in -rmdir /s /q *.egg-info - -python setup.py sdist bdist_wheel -python -m PyInstaller -F tidal_dl/__init__.py -n "tidal-dl" --distpath "exe" -pip uninstall -y tidal-dl \ No newline at end of file