Skip to content

How to make prepend work as expected? → Avoid "Candidate to prepending not ready. Abort!" #1855

Answered by Moonbase59
Moonbase59 asked this question in Q&A
Discussion options

You must be logged in to vote

For all those search engines (and myself in 5 years …): Here’s a quite short example that works using opam-installed Liquidsoap 1.3.7 (it takes the next song to play from a script):

# test-04.liq: Use kPlaylist as input and prepend IDs

set("log.file.path", "/home/matthias/Musik/liquidsoap/test-04.log")
set("log.file",true)
set("log.stdout",false)
set("log.level",3)
set("server.telnet",true)
set("init.daemon.pidfile.path", "/home/matthias/Musik/liquidsoap/liquidsoap.pid")

def get_next() =
  # Get the first line of my ices/kplaylist script’s output (the URI)
  # (the 2nd line contains an optional stream title)
  lines = get_process_lines("/home/matthias/Musik/ices/ices.sh")
  uri = list.hd(

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by smimram
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #240 on August 25, 2021 18:35.