From 5d573c57c9518c9f45449b37d927ad75d9994fd8 Mon Sep 17 00:00:00 2001 From: Mark Derricutt Date: Thu, 23 Oct 2025 20:50:40 +1300 Subject: [PATCH] Add format place holder for album_type This commit exposes the album type as a configuration placeholder. Fixes #595 Change-Id: Ife8832534861fc01da5d68c37be6c7476a6a6964 --- tidal_dl_ng/helper/path.py | 5 +++++ 1 file changed, 5 insertions(+) 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