Open mikuta0407 opened 5 months ago
Oops... the test failed... I'll look into fixing that later.
maybe we could just add an extra Order() to sort?
As you pointed out, adding the order solved the problem. I added a commit in the fixup, so if there are no problems, I will squash it. https://github.com/mikuta0407/gonic/commit/e0931132d92ef39a8d9e60e618e7a062a8a4ed1e
In the current implementation, if the file names are as follows, they will be output in the expected order when the client displays the list.
However, if the leading zero is not as shown below, iSub and Jamstash will sort by string instead of by track number.
↓
This was resolved by inserting sort.
Also, DSub (Android) and others have a function to sort and display albums based on the release year value in the album list, but since
Year
is not stored when NewTCAlbumByFolder is executed in theGET /getMusicDirectory
process, the value is not included in the HTTP response and year sorting is not possible, so this has been fixed.