On Tue, 24 Apr 2018 16:07:50 -0500
Romain Beauxis wrote:
> Yes, just add it inside the callback function. If sending the message
> can take a while and block you may want to wrap it in a add_timeout
> to make sure the main streaming thread isn't stopped by it.
I'm using
2018-04-24 16:09 GMT-05:00 Romain Beauxis :
>
> 2018-04-24 14:33 GMT-05:00 Jeff Hyche :
> > I maybe missing something here. I've not had time to sit down and think
> > much about this, but how will this tell me what playlist just got
> > finished
2018-04-24 14:33 GMT-05:00 Jeff Hyche :
> I maybe missing something here. I've not had time to sit down and think
> much about this, but how will this tell me what playlist just got
> finished playing?
Something like this:
def on_playlist1_track(~last,pos) =
2018-04-24 13:06 GMT-05:00 Dave Hayes :
> On Tue, 24 Apr 2018 08:49:59 -0500
> Romain Beauxis wrote:
>> Ok, I've just pushed a new on_track callback for playlists. It takes
>> two argument: ~last:bool, true when the next track is the last in the
>>
I maybe missing something here. I've not had time to sit down and think
much about this, but how will this tell me what playlist just got
finished playing?
On Tue, Apr 24, 2018 at 08:49:59AM -0500, Romain Beauxis wrote:
> Ok, I've just pushed a new on_track callback for playlists. It takes two
>
On Tue, 24 Apr 2018 08:49:59 -0500
Romain Beauxis wrote:
> Ok, I've just pushed a new on_track callback for playlists. It takes
> two argument: ~last:bool, true when the next track is the last in the
> playlist and the actual track's position. If you return true in this
Ok, I've just pushed a new on_track callback for playlists. It takes two
argument: ~last:bool, true when the next track is the last in the playlist
and the actual track's position. If you return true in this function then a
playlist reload will be immediately queued.
2018-04-16 11:22 GMT-05:00
Actually, no. It's not a bad idea, I'll look at adding a playlist argument
for it.
2018-04-10 15:45 GMT-05:00 Jeff Hyche :
> I have a number of playlists.once that are reloaded using a cronjob. Is
> there a way to tell what play list just got finished playing? I want to
>
I have a number of playlists.once that are reloaded using a cronjob. Is
there a way to tell what play list just got finished playing? I want to
create a intellegent function using on_done=, but I need a way to tell
what playlist just finished.
I've been playing with the source.id() but it