Bugzilla – Bug 3415
Random Mix only plays one random album in "Random Albums" mode
Last modified: 2008-09-15 14:39:24 UTC
SlimServer Version: 6.5b1 - 7387 - Windows XP - EN - cp1252 When I start random mix in album mode, it only plays one album and then switches back to track mode. If the album has less tracks than the "show 10 upcoming songs" setting, random tracks are appended to the initial playlist to make it 10 entries long. You can see this happening in the log below: RandomPlay: playRandom called with type album RandomPlay: 9 songs remaining, songIndex = 34 RandomPlay: Starting random selection of 1 items for type: album RandomPlay: Find returned 1 items RandomPlay: Playing album: Songs No Words, 163 RandomPlay: Playing static album mode with 9 items RandomPlay: received command playlist newsong RandomPlay: while in mode: , from 127.0.0.1 RandomPlay: new song detected (0) RandomPlay: playRandom called with type RandomPlay: 8 songs remaining, songIndex = 0 RandomPlay: Starting random selection of 1 items for type: track RandomPlay: Find returned 1 items RandomPlay: Adding track: Mr Blue Sky, 1238 RandomPlay: Playing static track mode with 10 items
hrm: works for me. The difference is that your log seems to be missing the type. 2006-05-12 10:15:36.7986 RandomPlay: playRandom called with type album 2006-05-12 10:15:36.7991 RandomPlay: 10 songs remaining, songIndex = 3 2006-05-12 10:15:36.8105 RandomPlay: Starting random selection of 1 items for type: album 2006-05-12 10:15:36.8394 RandomPlay: Find returned 1 items 2006-05-12 10:15:36.8404 RandomPlay: Playing album: Legend, 7 2006-05-12 10:15:37.0352 RandomPlay: Starting random selection of 1 items for type: album 2006-05-12 10:15:37.0494 RandomPlay: Find returned 1 items 2006-05-12 10:15:37.0500 RandomPlay: Adding album: Midnight Sound, 74 2006-05-12 10:15:37.0599 RandomPlay: Playing continuous album mode with 2 items 2006-05-12 10:15:37.0603 RandomPlay: New mix started at 1147454136 2006-05-12 10:15:39.1414 RandomPlay: received command playlist newsong 2006-05-12 10:15:39.1419 RandomPlay: while in mode: album, from 127.0.0.1 2006-05-12 10:15:39.1520 RandomPlay: new song detected (0) 2006-05-12 10:15:39.1524 RandomPlay: playRandom called with type album 2006-05-12 10:15:39.1527 RandomPlay: 1 songs remaining, songIndex = 0 2006-05-12 10:15:39.1529 RandomPlay: Playing continuous album mode with 2 items However, I also notice that you are set for "static" mode. Thus, I'm guessing what you describe is ONLY happening for albums of less than 10 songs? If the album is over 10 songs, and you are in static mode, it should simply stop playing. Is this correct?
Hmmm - this is odd. I repeated the steps I went through the other day - clearing out Slimserver and doing a re-install from scratch and this time it appears to have worked - the album entries are adding as expected. Is there anything cached by SlimServer outside of the c:\Program Files\SlimServer folder which might have been hanging around? Unless the installation of AlienBBC or Lazysearch2 mucked something up - I'll try and reproduce it.
Oh ok. Well, I've managed to find something (couple of somethings actually), but ONLY when "add new items..." is unchecked. Will merge in tonight so you can try out on tomorrow's build. The change is to add a sanity check, only adding new items if pref is for continuous mode on an existing mix. The initial mix also make sure that there is always more than one track. This is also only needed when in continuous mode.
should now be fixed as of change 7412. When not in continuous mode, a single track added as a result of album/genre/year/artist mix will merely be a single track. no more track will be added unless "add more songs" is selected. please reopen if issues remain.