summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/download.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2025-03-27 19:01:51 +0100
committerRobert Honz <exislow+github@gmail.com>2025-03-27 19:01:51 +0100
commit6ac116beeda70d8f86fca7f74303945ed4ebeb56 (patch)
tree812553d6b32637cc836a7a11b95a94815e002b0e /tidal_dl_ng/download.py
parentf4b40b133e08cb9e9cec816ea34265ffd12f47e8 (diff)
downloadtidal-dl-ng-6ac116beeda70d8f86fca7f74303945ed4ebeb56.tar.gz
🛠️ Fixed and simplified path_file_sanitize method.
Diffstat (limited to 'tidal_dl_ng/download.py')
-rw-r--r--tidal_dl_ng/download.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py
index b3e7d3e..fe5f0c6 100644
--- a/tidal_dl_ng/download.py
+++ b/tidal_dl_ng/download.py
@@ -334,9 +334,7 @@ class Download:
if media_id and media_type:
# If no media instance is provided, we need to create the media instance.
media = instantiate_media(self.session, media_type, media_id)
- elif isinstance(media, Track) or isinstance(
- media, Video
- ): # Check if media is available not deactivated / removed from TIDAL.
+ elif isinstance(media, Track | Video): # Check if media is available not deactivated / removed from TIDAL.
if not media.available:
self.fn_logger.info(
f"This item is not available for listening anymore on TIDAL. Skipping: {name_builder_item(media)}"