diff options
| author | exislow <exislow@users.noreply.github.com> | 2025-11-12 09:37:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-12 09:37:11 +0100 |
| commit | df2b5e1ef981f58ce5d93a75705600170256a9e9 (patch) | |
| tree | 010cdcf81ab5fd24fe2caa51c518498f1936c51c | |
| parent | 6e665bcd45053594bff4015ef20e0127dba8bcdc (diff) | |
| parent | 5d573c57c9518c9f45449b37d927ad75d9994fd8 (diff) | |
| download | tidal-dl-ng-df2b5e1ef981f58ce5d93a75705600170256a9e9.tar.gz | |
Merge pull request #625 from talios/feature/klrrwxuwvrty
Add format place holder for album_type
| -rw-r--r-- | tidal_dl_ng/helper/path.py | 5 |
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 |
