Sort tracks in (local) album by 'track no' (want to do a PR, need help)
See original GitHub issueI appreciate this front-end a lot, this really makes Mopidy amazingly user-friendly and it was super easy to set up! I would like to help out, but am a bit lost in the code. Could someone help get me started?
Is your feature request related to a problem? Please describe. When I open an album (Mopidy local) in Iris, the tracks are by default sorted alphabetically, and there is no way to sort them by track no: i.e. to listen to the album in the order the tracks are on the cd.
Describe the solution you’d like A button to sort the tracks inside an album by track no, ideally also it being the default sorting.
Describe alternatives you’ve considered
I’ve looked through Mopidy, Mopidy Local and Iris trying to find out whether I can implement this change myself. I have found the track_no
property in Mopidy and Local, but cannot find the sorting buttons / bindings in Iris. Could someone point me to the right files?
Additional context I’ll just repeat the quetion I have now: Could someone point me to the files where the sorting functions and buttons are? I would like to implement sorting by track_no inside albums.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Resolved in release
3.49.0
Hang on a minute here, local files scanned with Mopidy-Local will provide the correct
track_no
field extracted from the file’s metadata tags. Can’t you use the track’strack_no
field to do the ordering (or leave the ordering from Mopidy alone as it should be already provided in that correct order).EDIT: Sorry @jaedb, @fhoekstra, I see that’s exactly what you are planning to do. What I should have said is that renaming your track files will not effect the name Mopidy assigns them after scanning. For your workaround you would need to either prepend the track number to the track name metadata field (rather than the the filename), or remove the track name metadata field.