diff options
| author | flesnuk <al315567@uji.es> | 2025-02-19 19:07:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-19 19:07:31 +0100 |
| commit | 456266ba0b24cafb081b7fc0a3fa93af00090ce1 (patch) | |
| tree | 93ea617bda2d8f2be1d2a1ccb6b7ee9c2675a0bb | |
| parent | b0bf71ccf523359333c6a4eabfa973135832bd7e (diff) | |
| download | tidal-dl-ng-456266ba0b24cafb081b7fc0a3fa93af00090ce1.tar.gz | |
Add isrc to path formatting
| -rw-r--r-- | tidal_dl_ng/helper/path.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py index a275cca..61a9e08 100644 --- a/tidal_dl_ng/helper/path.py +++ b/tidal_dl_ng/helper/path.py @@ -172,6 +172,9 @@ def format_str_media( if isinstance(media, Track | Video): num_volumes: int = media.album.num_volumes if hasattr(media, "album") else 1 result = "" if num_volumes == 1 else f"CD{media.volume_num!s}" + case "isrc": + if isinstance(media, Track): + result = media.isrc except Exception as e: # TODO: Implement better exception logging. print(e) |
