GNOME Bugzilla – Bug 670833
Recently Played playlist only plays top two songs when sorted by 'Last Played'
Last modified: 2020-03-17 09:18:44 UTC
When songs in the 'Recently Played' playlist are sorted by 'Last Played', only the two most recently played songs are played. This appears to be caused by the fact that as the currently playing song finishes playing, it is moved to the top of the list (i.e. the most recently played song) before playback proceeds to the next track. This means that the previously played track is always next in the list and the player therefore continuously loops through the two most recently played songs.
Thank you for your bug report. I was able to reproduce the problem with the latest git master : with the situation you described the smart playlist is updated before we choose the next track, so it's always going to be the track that was played before.
*** Bug 699961 has been marked as a duplicate of this bug. ***
Here's a patch from the duplicate, which apparently fixes the issues, but it's not really a correct fix. diff --git a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs index 1fbfcaf..b3ae8bc 100644 --- a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs +++ b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs @@ -439,7 +439,7 @@ namespace Banshee.GStreamer // // This will be overridden by IncrementLastPlayed () called by // PlaybackControllerService's EndOfStream handler. - CurrentTrack.UpdateLastPlayed (); + //CurrentTrack.UpdateLastPlayed (); next_track_set.Reset (); pending_uri = null;
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the responsibility for active development again. See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.