Bugzilla – Bug 207
Randomized-by-album playlist always starts with same album
Last modified: 2008-09-15 14:37:04 UTC
I use my squeezebox as a sort of personal radio station: set the playlist to be all albums, and randomize by album. Whenever I add new music (or finish a cycle and notice it, but that takes two weeks), I clear the playlist, rescan, and add "all songs" from "browse by album". The playlist created *always* starts with the same album. I prolly wouldn't mind, but it's one I don't like that much. I can't find a configuration option to change the starting album (or starting song), or any other way to control this. The workaround is to click on whatever-the-first-song-in-the-next-album-is (*that* album is always different), then click albums (to randomize again). But it's rather irritating. If I have to always start with the same album, could I at least pick the album? Thanks.
*** Bug 558 has been marked as a duplicate of this bug. ***
seems to be by design. The reshuffle algorithm keeps track of the current song, and keeps that at the start, thus if you save a playlist, it will always start with the current song or the current album on which the current song resides. When saing a playlist from slimserver, it does store the current song in the EXTINF tags. One solution is to have the reshuffle ignore the current song when loading a playlist, editing line 792 of Command.pm like so: Slim::Player::Playlist::reshuffle($client,1); -kdf
oh and, of course, the suffle routine for album has to actually obey this. line 338 of Playlist.pm needs to be: if ($realsong == -1 && !$dontpreservecurrsong) { however, I'm certain that if $realsoong == -1 that ist shoudn't do anything anyway, so that whole if statement can probably go. what might be problematic here is if some users WANT the current song to persist from teh last time they played a particular playlist. But, this really requires resaving thw playlist, or a way to keep track of the most recent current song. That, however, is part of another bug report.
Created attachment 133 [details] don't go to track current song when loading a playlist shuffled. dontpreservecurrsong, if set and respected when loading the playlist will avoid causing the same album every time.
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006. I am setting them to targets of 6.2.1 to keep them from showing up in my queries.