Hi Tim,

You can't do much to prevent playlists from looping. The only option
is to empty the playlist file and reload. It won't work if it's really
empty (there's a protection to not reload in this case, not sure it
it's a great idea) but you can fake an empty playlist by putting e.g.
a fake URL in it, iirc.

The best solution is probably to not use playists. If you're
generating the playlist from a script, it should be easy to push items
to a queue instead. Unlike the playlist, the queue will only play
once, and fail when it becomes empty.

Hope this helps,

David

On Tue, Apr 1, 2014 at 12:59 AM, Tim Baker <timbear...@gmail.com> wrote:
> Just a question about the best way of doing a feature on my radio station,
> Radio Clash Live - I've hacked up a way of doing it, which might be useful
> for others, but nagging me there might be a better way of doing it.
>
> Currently I want to play shows from a latest.pls which is an autogenerated
> playlist file (Python) of the file with the latest modification date, so I
> have a 'Latest show' slot:
>
> radioclashlatest =
> playlist(mode="normal",reload=3200,"/home/shows/featuredshows/radioclash/talk/latest.pls")
>
> slotradioclashlatest =rotate(weights =
> [1,1],[delay(120.,promos),radioclashlatest])
>
> All far so simple. Thing is, if the latest playlist say has a short show,
> and finishes early, what then? I usually have a few extra music tracks, but
> say if it's  1 hour show in a 2 hour show, this will repeat it.
>
> I've tried to do this:
>
> slotradioclashlatest =rotate(weights =
> [1,1,1],[delay(120.,promos),radioclashlatest, radioclashnormal])
>
> Problem with that, is you can't easily prioritise a playlist in a slot, so
> say if last week 'radioclashnormal' hadn't finished playing, then the latest
> slot would start with an old show, not the first one in the stack?
>
> This 'resume' feature is nice, but is there a way of 'resetting' a playlist
> or slot to always play from the start, every time? I've asked this before
> and people didn't respond on here, so thought I'd try again. For other
> playlists this is a great feature, so if you tune back in next time it
> starts where it left off...but for slots for new shows, not so great.
>
> What would be ideal is for it to cascade, a bit like fallback but for a slot
> - so always start with one playlist, then when that's finished, play from
> another backup one. I know I can do that with fallback for the whole stream,
> but this would be per timed slot?
>
> thanks
>
> Tim
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Savonet-users mailing list
> Savonet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>



-- 
David

------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to