Closed lukaszb closed 2 years ago
Agreed. ;) I myself wanted to write about this feature, but I thought it was timely.
I don't have time right now to add this, if someone is interested feel free to open a PR
Sure, will do 👍 , just wanted to make sure it's something "acceptable".
Requested Feature
If someone uses
track_number
at theoutput
param they might expect tracks to be sorted lexically. This is not the case if there are at least 10 tracks at the album (because10
would land before2
).Current behaviour
If I use
track_number
at output I can get something like this:And I expect to get something like:
Because if I download whole album I probably do care about order of the tracks. And lexical sorting is probably most commonly used as a default one (i.e. at car mp3 players).
Possible implementation
At
spotdl.utils.formatter.format_query
instead ofsong.track_number
we can use this: