Add track-path-format 'TrackID'

This commit is contained in:
392309221
2022-03-08 08:53:24 +08:00
parent bab13ff718
commit 6676a380e1
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -167,3 +167,4 @@ tidal_dl-BAK
/TIDALDL-GUI-CROSS/tidal_gui/viewModel/__pycache__
/TIDALDL-GUI-CROSS/tidal_gui/control/__pycache__
__pycache__
TIDALDL-PY/tidal_dl/m3u8dl.py
+1
View File
@@ -97,6 +97,7 @@
| {AudioQuality} | LOSSLESS |
| {DurationSeconds} | 173 |
| {Duration} | 02:53 |
| {TrackID} | 55163244 |
## ☕ Support
+1
View File
@@ -210,6 +210,7 @@ def getTrackPath(conf: Settings, track, stream, album=None, playlist=None):
retpath = retpath.replace(R"{AudioQuality}", track.audioQuality)
retpath = retpath.replace(R"{DurationSeconds}", str(track.duration))
retpath = retpath.replace(R"{Duration}", __secondsToTimeStr__(track.duration))
retpath = retpath.replace(R"{TrackID}", str(track.id))
retpath = retpath.strip()
return base + retpath + extension