summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tidal_dl_ng/helper/path.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py
index 9227ee3..6ed8020 100644
--- a/tidal_dl_ng/helper/path.py
+++ b/tidal_dl_ng/helper/path.py
@@ -452,6 +452,11 @@ def _format_metadata(
name == "album_explicit" and isinstance(media, Album)
):
return FORMAT_TEMPLATE_EXPLICIT if media.explicit else ""
+ elif name == "media_type":
+ if isinstance(media, Album):
+ return media.type
+ elif isinstance(media, Track):
+ return media.album.type
return None