request.dynamic replays same song #2698
Replies: 8 comments 2 replies
-
After some more digging I have discovered that liquidsoap seems to do multiple requests to the getsong.py script when starting up. Is there any way to have it only do the one request? And then one request when the current song is over. |
Beta Was this translation helpful? Give feedback.
-
Am I right, that this was resolved by updating to Liquidsoap 1.4.3? |
Beta Was this translation helpful? Give feedback.
-
Sorry, yes, running 1.4.3 seems to have helped. |
Beta Was this translation helpful? Give feedback.
-
Reopening this since the behavior has reappeared in 2.0.1 Setting prefetch=0 does nothing, it actually makes things worse by just skipping that source completely. |
Beta Was this translation helpful? Give feedback.
-
Thanks. Do you have any logs and/or a script to reproduce the issue? |
Beta Was this translation helpful? Give feedback.
-
Hi, I have the same problem, when "prefetch" = 0 silence plays, when "prefetch" = 1 2 songs are loaded script
logs
script
logs
|
Beta Was this translation helpful? Give feedback.
-
Hi, This seems like the default behavior, yes. One song is fetched and starts playing immediately and the next song gets fetched to be queued. If you need something more finer-grained you can use the
(code untested) However, you should be careful that the request resolution succeeds in less than |
Beta Was this translation helpful? Give feedback.
-
I have a fairly simple setup. I want Liquidsoap to run a pythonscript to get what file to play, then when that song is over, execute the script again and play the song the script outputs.
The song plays fine the first time, but when it is over, it just repeats.
Here is the .liq file I'm running
In the logfile, I see that the script is being executed and it gets a new song, but the old one just replays.
As you can see, it first plays the song starting with 6..., then it finds the one starting with 8..., but it plays 6... instead.
Beta Was this translation helpful? Give feedback.
All reactions