#56: improve playlist() behaviour
------------------------+---------------------------------------------------
 Reporter:  paulvt      |       Owner:  admin
     Type:  Feature     |      Status:  new  
 Priority:  1           |   Milestone:       
Component:  Liquidsoap  |     Version:       
 Keywords:              |  
------------------------+---------------------------------------------------
 Currently, it is not possible to have a playlist just not loop and fail
 when finished.  To be able to emulate such a thing, you need to load
 everything in some request queue and the queue manipulation is not ideal.

 I propose changing the semantics of playlist (maybe not playlist.safe())
 to include a loop setting.
 {{{
 def playlist(~loop=true, ~mode="random", ...)
   ..
 end
 }}}

 Semantics:
 if loop == true then behave like old mode setting
 if loop == false then
   if mode == "normal" then play the tracks in order end
   if mode == "randomize" then shuffle and play the tracks in the shuffled
 order end
   if mode == "random" then act the same as when mode == "randomize" end
 end

-- 
Ticket URL: <http://savonet.rastageeks.org/ticket/56>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !

Répondre à