David Baelde <david.baelde@...> writes:
> def reload_on_change(s)
> last_seen = ref("")
> def handler(m)
> id = m["source"]
> old_id = !last_seen
> if old_id != id then
> last_seen := id
> if old_id != "" then
> log("Reloading #{old_id}...")
> list.iter(log,server.execute("#{old_id}.reload"))
> end
> end
> end
> on_track(handler,s)
> end
>
> playlists = reload_on_change(playlists)
Hi David,
I have one further question regarding your solution. In my tests this
method only works when using track_sensitivity.
With your solution when I get back to the previous playlist the last
song is played until the end before the playlists starts from the
beginning.
In my use case I will normally stop a playing track and transition
to another playlist on top of the hour.
Could you please give me a hint how to change your solution
that it is also working with track_sensitivity=false?
Thanks in advance and best regards
Stephan
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users