✨ Check if song is available before download.

This commit is contained in:
Robert Honz
2024-02-26 06:53:53 +01:00
parent 4b7f47bc0a
commit 67c69290f0
+8
View File
@@ -190,6 +190,14 @@ class Download:
elif not media: elif not media:
raise MediaMissing 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 video download is not allowed end here
if not video_download and isinstance(media, Video): if not video_download and isinstance(media, Video):
self.fn_logger.info( self.fn_logger.info(