Tidal-Media-Downloader-PRO
Tidal-Media-Downloader-PRO copied to clipboard
TrackNumber - specify number of leading 0's
Thank you for this incredibly useful tool.
When it comes to audio books the single leading 0 that the tool is currently adding to single-digit track numbers is unfortunately not enough to keep up with the number of tracks (100s). Would you consider either switching to three digits or making the number of digits configurable, so I would end up with something like
001 - Track 1.mp4 ... 241 - Track 241.mp4
?
For now I can work around this only with external tools to rename files after they have been downloaded completely.
Thanks and Best, t0l0
This issue has been automatically marked as stale because it has not had recent activity.
Ping, so it's not marked as stale.
This issue has been automatically marked as stale because it has not had recent activity.
Ping
@t0l0 can you give me detailed steps to reproduce and see the problem?
@MozgC If you download any album (probably applies to playlists, too) with > 99 tracks, you run into this issue. Track numbers currently are only zero-padded to a length of 2.
The numbering currently is 01 02 … 09 10 which is fine.
From Track 98 on, it is 98 99 100 101 102 which results in sorting problems under some OS/FS.
Try this random audiobook as an example: https://listen.tidal.com/album/197503724
I think it should be enough to change padding length to 3 in these 2 places, ideally optionally make it configurable for people who do not want a 3-length padding.
https://github.com/yaronzz/Tidal-Media-Downloader-PRO/blob/74d7599aa1e12ac6c191009f5f68fb635187bb38/TIDALDL-UI-PRO/Else/Tools.cs#L130
https://github.com/yaronzz/Tidal-Media-Downloader-PRO/blob/74d7599aa1e12ac6c191009f5f68fb635187bb38/TIDALDL-UI-PRO/Else/Tools.cs#L132
Sorry for not submitting a pull request, I currently do not have a C# dev environment at hand.
@yaronzz Please merge the PR
@t0l0 thanks for the explanation. The PR is ready.
This issue has been automatically marked as stale because it has not had recent activity.