You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suggestion is to make reload_mode="watch" working with remote playlist by periodically fetching it and reloading when the newer version is available. Periodic fetching interval can be defined through a parameter, e.g. refresh_interval=10 (fetch remote playlist every 10 seconds).
The text was updated successfully, but these errors were encountered:
iSerganov
changed the title
Watch changes in a remote playlist
[Feature request]: Watch changes in a remote playlist
Jul 12, 2024
Thanks for submitting. While we should probably add this to the operator, you can always implement it by using the reload method of the playlist source:
s = playlist("...")
# Check on the remote playlist
s.reload()
At the moment
reload_mode="watch"
is not supported by remote playlists.And it would be super nice feature to have!
Until it is implemented, the workaround is to put a script like this into your Liquidsoap container:
And my
.liq
file contains playlist definition as follows:myplaylist = playlist(environment.get("PLAYLIST_PATH"),reload_mode="watch")
My suggestion is to make
reload_mode="watch"
working with remote playlist by periodically fetching it and reloading when the newer version is available. Periodic fetching interval can be defined through a parameter, e.g.refresh_interval=10
(fetch remote playlist every 10 seconds).The text was updated successfully, but these errors were encountered: