On Fri, 17 May 2019, 09:38 SlvrEagle23, <notificati...@github.com> wrote:
> I strongly suspect there's already a Liquidsoapy solution for this > problem, but I'm not aware of what it is, so I figured I'd ask on here: > > Currently, when users indicate that they'd like a song to play once per > day at a specified time (or once per hour), the Liquidsoap config we're > writing is basically: > > radio = switch(track_sensitive=true, [ ({ 2h58m }, > once(playlist_interrupting_cow_moo)), ({true}, radio) ]) > > However, this is having the effect of only playing the song specified if > the "next song" is calculated exactly at the 2:58 minute. Of course, when > track_sensitive is set to false this isn't a problem, and it just > directly interrupts the existing stream. > > However, with track_sensitive set to true, what our users are actually > looking for is that when the time the track is due to play comes up, the > song gets queued up as the next-playing song and then right as the current > track finishes, even if the specific minute when the song should've played > is up, it goes ahead and plays through anyway. > > I'm not sure how to do this in Liquidsoap. We could always just have the > web application do a minute-by-minute check of songs that are due to play > at that minute and push to the "requests" queue, but of course I'd like to > avoid this if at all possible. > > I don't know LS way of doing this so I set up a queue then use an 'expect' script via telnet to drop an item into the queue which overrides the playlist. Super system, anyway. JW > >
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users