summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tidal_dl_ng/download.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py
index 2c15c5b..bac9e88 100644
--- a/tidal_dl_ng/download.py
+++ b/tidal_dl_ng/download.py
@@ -190,6 +190,14 @@ 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 and isinstance(media, Video):
self.fn_logger.info(