-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
playlist
sometimes plays files out of order after reloading
#3343
Comments
I am trying to write the playlist "atomically" with python, but in my case LiquidSoap is not recognizing the newly written file -- or at least is not using the changes. I can reproduce this behavior:
.... and liquidsoap uses the changes in the playlist file..... BUT, if I use this function instead....
..And liquidsoap does not bring in the changes -- even though I can confirm in a text editor that the changes have been made.... I also tried this library: https://pypi.org/project/atomicwrites/ .. and the behavior is the same. I wonder how liquidsoap has implemented the "watch" functionality..... |
Further to this -- has anyone found a rock-solid and reliable way to provide new playlist files for liquidsoap, and guarantee that those playlist files are played in order? I tried making making http requests for a playlist file, directly from liquidsoap, as suggested like in the manual (p. 182) like...
... But found that this is too dangerous to use -- if the server doesn't respond quickly, it backs up the entire liquidsoap process and causes problems.... ... So this is why I implemented a solution with python running in a separate docker container, doing all the communication with the server, and then writing a new playlist file.... But (as shown in this thread) that has some serious pitfalls also -- liquidsoap doesn't seem to recognize changes in "atomically" written files, and if a file is not "atomically" written, then it might be played out of order. Has anyone found a reliable way to write new playlist files and have them picked up without problems by liquidsoap? |
Reproduced in 2.2.4-1.
Result may look like this:
|
playlist
could play files out of order after reloadplaylist
sometimes plays files out of order after reloading
Describe the bug
playlist
could break the order of files if files are updated using non-atomic writes.Reload
Reload
To Reproduce
main.liq
playlist1.txt
for i in $(seq 1 9);do ffmpeg -f lavfi -i "sine=frequency=1000:duration=1" -c:a libmp3lame -b:a 128k -y $i.mp3;done
.liquidsoap main.liq
.cat playlist1.txt > playlist.txt
.Expected behavior
The
playlist
doesn't break the order.Version details
Install method
Deb package from liquidsoap releases at github
Common issues
#3342
The text was updated successfully, but these errors were encountered: