Jukebox hack which worked on 2.3 does not work on 2.5.1
  • I've been using for over a year now a hack where I edited ls_script, removed the lines

    -default = amplify(id="silence_src", 0.00001, noise())
    -default = rewrite_metadata([("artist","Airtime"), ("title", "offline")],default)
    -ignore(output.dummy(default, fallible=true))


    and added the line

    +%include "/home/src/liq/airtime.liq"

    which is a script which defined default to be a jukebox of music, so that the station never goes silent.

    This worked fine under 2.2 and 2.3

    But after upgrading to 2.5.1, and reinstalling the above hack, it seems to break silently, and liquidsoap does not even attempt to connect to icecast2 in order to broadcast the streams set up in airtime, under any circumstances, even if there are scheduled shows! So basically the whole station would be off the air permanently.

    I have no idea why this would be, and haven't come up with any good ideas how to troubleshoot it.

    What hacks are you using in 2.5.1 to make the default be a jukebox instead of silence?
    Post edited by muhoo at 2014-01-08 01:08:30
  • 2 Comments sorted by
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    that's working but in a different way
    can you send your airtime.liq ?
  • Any Script use in  >2.0 should work with minor modification.

    Check your script by issuing the following command

    sudo /usr/lib/airtime/pypo/bin/airtime-liquidsoap  /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq

    It will tell you what's wrong with your script

    /var/log/icecast2/error.log

    Will tell why you have not connected to Icecast

    and since you have a seperate script in a seperate location


    backup your modified script  (like this /home/src/liq/airtime.liq.bak)

    create a new file (or otherwise) with just
    default = amplify(id="silence_src", 0.00001, noise())

    and name it
    /home/src/liq/airtime.liq

    Now toggle between comment #default = amplify(id="silence_src", 0.00001, noise()) and uncomment default = amplify(id="silence_src", 0.00001, noise())

    when its is commented  ,you should get a missing variable (default)  and not connected
    when its is uncommented  ,you should get  connected (ls_script like original with silence)

    You can check using the syntax above.

    I think you can shorten the check to sudo /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq.

    let me know your error syntax

    VOISSES
    Can you Hear Me


    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.