Liquidsoap change metadata on live input only
  • When I execute below, liquidsoap responds with: 
    'The variable live defined here is not used anywhere'
    That is because the live input is not active.
    source=fallback(track_sensitive=false,
    [live,radio,jingle_fail])

    def append_title(m)=
    title=m["title"]
    [("title","#{title} - LIVE-ON-AIR")]
    end

    live=map_metadata(append_title,live)

    How can I add metadata to the live input when it becomes active?

  • 1 Comment sorted by
  • "The variable live defined here is not used anywhere'
    That is because the live input is not active."

    This is your clue. you cannot use a varible before defining it. basic programming
    so
    # A live source like  a dj
    live = input.harbor("live",host="http://somewhere",port=8080,password="hackme",mount="live")

    # A live source like  a web stream
    #live = input.http(http://www.remotehost.com:8000)

    # you will also want to send buffers and other debug to a dummy to prevent lots of info in your logs
    ignore(output.dummy(live, fallible=true))

    Please define the other variables like radio etc unless you will still have complaint

    http://savonet.sourceforge.net/doc-svn/cookbook.html

    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.