Incorrect album playlisting
one-egg-is-un-oeuf opened this issue · 3 comments
On Arch, built using the AUR package. When browsing This Device and then clicking Play all on an album, the tracks are playlisted in an incorrect order. Specifically track 1 is placed near the end, so for example instead of 1 2 3 4 5 the playlist will be something like 2 3 4 5 1 or 2 3 4 1 5.
Cannot reproduce your issue.
The track order is defined by the metadata of the media file, i.e AlbumTrackNo:
SortFilterModel {
id: songsModel
model: tracks
sort.property: isAlbum ? "albumTrackNo" : "normalized"
sort.order: Qt.AscendingOrder
sortCaseSensitivity: Qt.CaseInsensitive
}
If the metadata isn't provided , then the order is undefined. As example for a MP3 file your should check the id3tag.
It's very strange, my metadata is correct, the tracks are ordered correctly in the left pane yet when clicking "Play all" the first track appears near the end of the playlist. Maybe it's some kind of race condition but it's repeatable for me and happens with all my albums of local music. I attached a screenshot to explain. I guess I will try to remove and rebuild the app from source.
I found the bug. It is always on the first track with index 0.