Hi all, a relatively new user to Liquidsoap here.
I currently have a playlist file and it’s corresponding media files in a
Dropbox folder. Using mode=“random” with the playlist function is working fine.
I can change liq_cue_in and liq_cue_out using nano on the machine that
Liquidsoap is running on and the modification is registered and the file is
reloaded every time. However, if I make a change to the same playlist file
remotely in Dropbox the playlist is not reloaded.
I’ve also been experimenting with SSHFS, mounting my Server’s filesystem on my
Mac and changing the file with Text Edit. Liquidsoap does see a change to the
file when I do this, but only once. If I change the file after that it does not
see it has been modified.
While I appreciate there are other, perhaps better ways to do this, this was
meant to be a proof of concept for my eventual goal. I want to essentially
create a dynamic source based system, which parses commands from one or several
text files instead of a telnet or unix socket. With that in mind, I ran the
following code in the interactive loop from the directory containing the
watched file.
<code>
text= "File has been modified."
file.watch("test.txt",fun () -> print(text))
</code>
This produced the same results as with the playlist. Modification using Text
Edit via SSHFS was only seen by liquidsoap once despite several more successful
modifications, while modifications made via Dropbox were not picked up by
Liquidsoap at all.
I guess I’m simply curious to know why file.watch doesn’t pick up on remote
changes to files. I hope I’ve provided enough evidence to back up this question.
I hope someone here can help me, and thank you in advance for any help given.
Kind regards,
Kyle Jones.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users