@gammaw Not deprecating anymore! @alcir convined me that there was a legit use
for it :-) Now let's see about this issue.
Here's a quick test script:
```
set("log.level",4)
set("server.telnet",true)
playlist = playlist.once(reload_mode="watch","/tmp/test")
condition = interactive.bool("foo",true)
source = switch([(condition, playlist)])
failsafe = single("/tmp/single.wav")
source = fallback(track_sensitive=false,[source,failsafe])
output.ao(fallible=true,source)
```
Steps to test:
1. Set up `/tmp/test` with e.g. one file
2. Set up `/tmp/single.wav`
3. Execute the script
4. Wait until `playlist.once` has played all its tracks and `failsafe` is
playing
5. On a telnet console do: `var.set foo = false`. This simulates the time
predicate going to `false`
6. Execute: `touch /tmp/test`. The playlist should reload.
7. On a telnet console, do: `var.set foo = true`. Playback should resume.
This is a close as I could get to your script but I wasn't able to reproduce.
Could you test and let us know if the reproduction steps work for you or not.
If the bug is not reproducible using those, could you try to substitute for
your use case, for instance using a `m3u` playlist instead of a directory and
etc.
Thanks for your help on this!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/735#issuecomment-484744673
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users