summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorexislow <exislow@users.noreply.github.com>2025-02-28 11:14:21 +0100
committerGitHub <noreply@github.com>2025-02-28 11:14:21 +0100
commit3af7d12580e204b6fd6a8c80b9d15b8c5e6f134f (patch)
tree056d5071fd37697272c2bf5e7dfb71cac1f8b29e
parent5e91194bd1211e769739a80c46e0812f309f688f (diff)
parent456266ba0b24cafb081b7fc0a3fa93af00090ce1 (diff)
downloadtidal-dl-ng-3af7d12580e204b6fd6a8c80b9d15b8c5e6f134f.tar.gz
Merge pull request #369 from flesnuk/master
Add isrc to path formatting
-rw-r--r--tidal_dl_ng/helper/path.py3
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)