Using the frequently played view on Elisa is showing some recently played files, but the history is very short. Playback from weeks ago is not showing. Also its not clear, where the "play count" is actually saved?
View tracks of my library which have 0 plays show up when filtering for least frequently played first and not only tracks with play count = 1.
Also it show playback history from "forever", maybe there is a reason this "history" gets deleted, so transparency about how play count is actually used and where it is saved would be helpful.
(available in About System)
KDE Plasma Version:
KDE Frameworks Version:
Seems like the Recently Played and Frequently Played views both display the same (incorrect) track list.
The problem is `computePreferredSortRole` setting `sortRole` to `TitleRole` because the list view is based on tracks (i.e. sorting by track title).
Workaround for now is to remove the function calls to `computePreferredSortRole` on lines 362 & 364 of viewmanager.cpp. I think these calls exist for future purposes when grid/list views are able to be set by the user (bug 411952).
A possibly relevant merge request was started @ https://invent.kde.org/multimedia/elisa/-/merge_requests/406
Git commit c266d7097f4996920c658a4d8732b2f8e949b926 by Jack Hill.
Committed on 11/01/2023 at 17:11.
Pushed by ngraham into branch 'master'.
Sort the "Frequently Played" view based on the play count of each track
Previously was using a formula that prioritised recently played tracks.
This meant you could have a track with 8 plays being displayed higher
than a track with 10 plays.
Now the view only sorts tracked based on the play count of each track.
M +1 -12 src/databaseinterface.cpp
M +0 -1 src/datatypes.h
M +0 -4 src/models/editabletrackmetadatamodel.cpp
M +0 -2 src/models/trackmetadatamodel.cpp
M +1 -1 src/viewmanager.cpp
M +2 -2 src/viewslistdata.cpp