liquidsoap icon indicating copy to clipboard operation
liquidsoap copied to clipboard

Playing a houropener (TOTH)

Open finnie2006 opened this issue 2 years ago • 0 comments

Hello, I am trying to let my hour opener play at exact 00 of every hour, and let it interrupt the song that was playing.

radio = switch(id="interrupt_switch", track_sensitive=true, [ ({ 00m-04m} , playlist_uuropener), ({true}, radio) ])

I currently have this, but then it will fill the full time and play the houropner again for like 30 seconds, how can i set it to only play once?

I also tried this, but then it will only do it once and not again

radio = switch(id="interrupt_switch", track_sensitive=false, [ ({ 30m-34m} , once(playlist_uuropener)), ({true}, radio) ])

And i tried this, it prepairs it but then it does not play it

radio = switch(id="interrupt_switch", track_sensitive=false,[(predicate.activates({ 30m - 35m }), playlist_uuropener), ({ true }, radio)])
2022/04/14 14:30:00 [playlist_uuropener:3] Prepared "/var/azuracast/stations/radio_annabel/music/uuropener/uuropener.mp3" (RID 11).
2022/04/14 14:30:00 [interrupt_switch:3] Switch to cue_playlist_uuropener with transition.
[mp3float @ 0xffff5016e140] Could not update timestamps for skipped samples.
2022/04/14 14:30:00 [cue_playlist_uuropener:3] Cueing in...
2022/04/14 14:30:00 [interrupt_switch:3] Switch to switch_8 with transition.
2022/04/14 14:30:00 [crossfade_0:3] Analysis: -7.553050dB / -7.738884dB (2.96s / 2.96s)
2022/04/14 14:30:00 [crossfade_0:3] No transition: using default.
2022/04/14 14:30:00 [lang:3] API feedback - Sending POST request to 'http://127.0.0.1:9010/api/internal/1/liquidsoap/feedback' with body: {
2022/04/14 14:30:00 [lang:3]   "song_id": "4224913f702b03deab34a0d8dbc9a439",
2022/04/14 14:30:00 [lang:3]   "playlist_id": "2",
2022/04/14 14:30:00 [lang:3]   "media_id": "199"
2022/04/14 14:30:00 [lang:3] }
2022/04/14 14:30:00 [lang:3] API feedback - Response (200): true
2022/04/14 14:30:03 [lang:3] API feedback - Sending POST request to 'http://127.0.0.1:9010/api/internal/1/liquidsoap/feedback' with body: {
2022/04/14 14:30:03 [lang:3]   "song_id": "8f09ce365c9906651fc00b3f2a7eafdc",
2022/04/14 14:30:03 [lang:3]   "playlist_id": "9",
2022/04/14 14:30:03 [lang:3]   "media_id": "789"
2022/04/14 14:30:03 [lang:3] }
2022/04/14 14:30:03 [lang:3] API feedback - Sending POST request to 'http://127.0.0.1:9010/api/internal/1/liquidsoap/feedback' with body: {
2022/04/14 14:30:03 [lang:3]   "song_id": "4224913f702b03deab34a0d8dbc9a439",
2022/04/14 14:30:03 [lang:3]   "playlist_id": "2",
2022/04/14 14:30:03 [lang:3]   "media_id": "199"
2022/04/14 14:30:03 [lang:3] }
2022/04/14 14:30:03 [lang:3] API feedback - Response (200): true
2022/04/14 14:30:03 [lang:3] API feedback - Response (200): true

Thanks in advance

finnie2006 avatar Apr 14 '22 11:04 finnie2006