mirror of
https://github.com/yaronzz/Tidal-Media-Downloader.git
synced 2026-06-13 04:05:07 +03:00
Add track-path-format 'TrackID'
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -97,6 +97,7 @@
|
||||
| {AudioQuality} | LOSSLESS |
|
||||
| {DurationSeconds} | 173 |
|
||||
| {Duration} | 02:53 |
|
||||
| {TrackID} | 55163244 |
|
||||
|
||||
## ☕ Support
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user