question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sort tracks in (local) album by 'track no' (want to do a PR, need help)

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jaedbcommented, May 20, 2020

Resolved in release 3.49.0

1reaction
kingostickscommented, May 1, 2020

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’s track_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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I sort an album by track number? - Microsoft Community
If it isn't on album, just click that portion of the heading until it says it's by album. It should then list all...
Read more >
Sort album by track number - Apple Support Communities
If you sort your library by Artist, iTunes will still sort albums by track number if things are tagged correctly. Often what happens...
Read more >
Can't play album in correct sequence - Audirvana
I just want to be able to select an album hit play, and hear the music in the correct order. No other player...
Read more >
Sorting album tracks by track artist ? - MusicBee
Switch to Album & Tracks view, then go into Configure Panel and change it to detailed list. Make a custom sort order like...
Read more >
How to Make Your Songs Play in the Right Order - Lifewire
Download and open mp3DirSorter. Drag audio files from the storage device onto mp3DirSorter to sort alphabetically.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found