From 456266ba0b24cafb081b7fc0a3fa93af00090ce1 Mon Sep 17 00:00:00 2001 From: flesnuk Date: Wed, 19 Feb 2025 19:07:31 +0100 Subject: [PATCH] Add isrc to path formatting --- tidal_dl_ng/helper/path.py | 3 +++ 1 file changed, 3 insertions(+) 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)