diff options
| author | exislow <exislow@users.noreply.github.com> | 2024-02-26 07:02:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-26 07:02:57 +0100 |
| commit | 43326ec93f2b8e06caaaf81acac8114dafa1bd61 (patch) | |
| tree | c44579691564263f7b22a467aba42280c38faf2a /tidal_dl_ng/download.py | |
| parent | 34fd48aabc1d11fc09abdff46ada598c6ed19473 (diff) | |
| parent | 87626d64c590a30f391e6bf1779ca39008a22ff8 (diff) | |
| download | tidal-dl-ng-43326ec93f2b8e06caaaf81acac8114dafa1bd61.tar.gz | |
Merge pull request #50 from exislow/48-401-client-error
48 401 client error (item not available anymore)
Diffstat (limited to 'tidal_dl_ng/download.py')
| -rw-r--r-- | tidal_dl_ng/download.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index 7490753..bac9e88 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -190,8 +190,16 @@ class Download: elif not media: raise MediaMissing + # Check if media is available not deactivated / removed from TIDAL. + if not media.available: + self.fn_logger.info( + f"This track is not available for listening anymore on TIDAL. Skipping: {name_builder_item(media)}" + ) + + return False, "" + # If video download is not allowed end here - if not video_download: + if not video_download and isinstance(media, Video): self.fn_logger.info( f"Video downloads are deactivated (see settings). Skipping video: {name_builder_item(media)}" ) |
