Hi Tim,2013/9/6 Tim Baker <tim@...>
> I'm a little confused, or not sure about the different playlist modes,
the reload_mode and the like.
> Is there any better resources out there - tried the documentation but it
doesn't really tell you anything about how *exactly* each mode works and
interacts with each other, ie. normal vs random for playlists, watch vs
rounds vs seconds, vs or rotate vs random in sequences for instance?
> Why I'm asking is this - I have playlists using mode=random,
reload_mode=watch and in the sequence (the collection of playlists that I
switch) is selected by either random or rotate. What's happening is
sometimes now I'm getting repeats of the same show, sometimes right next to
each other. I've got a delay on each show and promos so they don't
immediately repeat and forces a promo or a musical track to play for
variety, but I see from my Last.fm stream that the same show was played
right after each other. I know with random this is always a risk, but there
is a large pool of shows (100s) and it's strange for the same shows to be
popping up recently, as well as has been happening from day to day…deja vu
is setting in.
> It 's since I switched to reload_moad=watch, because the directories
aren't updated that often - which was on 3600 seconds, which makes me
suspect that each reload 'shuffled' the playlist regularly and thus made it
As the doc says (liquidsoap -h playlist), random picks up a random file
each time while randomize shuffles the playlist once and plays it through.
Thus, random mode is more likely to pick up the same item twice in a row.
Also, regularly reloading the playlist should have no impact in random mode
but make randomize more likely to pick up the same item twice.
We've had issues raised regarding playlist random functions quite often. I
think that we've scrutinized the code quite a lot but maybe we missed
something. However, the best for you if you want a more precise scheduling,
like setting up a "no repeat" timeout for shows, would be to setup your own
scheduling via request.dynamic. This way, you would have full control over
> Also noticed when the sequence is on rotate, when the switch occurs it
quite often doesn't play the first item, a promo, or drops in halfway
through the sequence - for example each sequence goes mypromos, ashow,
musicaltrack…. rinse, repeat (hopefully) - but found sometimes it plays
just the show skipping the promo, or a load of musical tracks first, then
the show (not always giving time for the show, hence why I use rotate and
have the show first).
> It's obvious to me that rotate doesn't always rotate in sequence, it's
not really that different from random (which I understood should randomly
pick one of the playlists to play from, taking the weighting into account).
Or doesn't restart from the start of the sequence, I'm guessing it picks up
from where it stopped last time? It's weird cos it DID do this when I
started, which makes me wonder if my modes, or delay on promos or shows
(usually set to 1.) is at fault somewhere.
> Or is this a bug in 1.1.1.?
It could very much be. Could you provide use with a simple example of the
issue that we could reproduce?