How to play one song from a specific playlist once every hour? #4096
Replies: 7 comments 14 replies
-
Hi @Laav ! I think this #4004 might be helpful for you.
For this you can change p.s. also standalone |
Beta Was this translation helpful? Give feedback.
-
@gAlleb thank for your help so far, but unfortunately, it's still not working. Maybe it'll be clearer if I share the entire config here. I've also left the attempts that didn't work, marked with a # at the beginning of the line.
Do you have any idea what's going wrong here? |
Beta Was this translation helpful? Give feedback.
-
It should be like this pl_radio = playlist(mode="randomize", reload_mode="watch", "/music")
pl_news = playlist(mode="randomize", reload_mode="watch", "/news")
radio = fallback(
track_sensitive=true,
[
switch(
id="news_switch",
[(predicate.once({ 00m }), pl_news)]
), pl_radio
]
)
radio = crossfade(
conservative=true,
radio
)
radio = mksafe(radio)
output(radio)
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation and the code, it works well indeed. Just one last question: what's the advantage of using |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Apologies for the delay, got some things on my hand in real life; It appears that I was running an outdated version of Liquidsoap, specifically version 1.4. I have since attempted multiple versions (both minimal and standard) of 2.2 and 2.3. However, with this script, I consistently receive the error message "No output defined, nothing to do" across all versions, preventing me from testing. Does anyone have any suggestions on how to resolve this error message first, so that I can proceed to test the script with a 2.* version of savonet/liquidsoap? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response, and this indeed resolves the issue. Initially, I was using the pltnk variant, but after the problems with the script, I switched to the savonet version (2.2.5), which required me to pass the script as a command. After updating to 2.2.5, the initial question also seems to be resolved. The code from gAlleb (#4096 (reply in thread)) now appears to be working as expected. |
Beta Was this translation helpful? Give feedback.
-
Hello,
For internal use, we have been successfully operating a continuous audio stream from a single directory for quite some time, without any issues. The system has been functioning flawlessly.
However, a new request has been made to incorporate a specific playlist (news) once every hour, preferably after the completion of the first track of that hour. This process should be repeated hourly.
I have attempted various solutions but have not yet achieved a fully functional system. Would anyone be able to assist with this matter? At present, I have implemented the following;
Beta Was this translation helpful? Give feedback.
All reactions