× Warning! This forum is in archival status. New contributions may not work.
liquidsoap tunein.com now playing implementation
  • 106 Comments sorted by
  • Well that is Great,Use Bill's Script if it works for you.
    Mine works for me.I used it up to earlier today,when I notice the problem you stated in this post.

    So although the core of the modifications  will still use my script proposed,I will  not to make Tunein or any other ApI have direct calls to the liquidsoap because it will pull down your server.

    My script was design
    • to take in consideration that you have modified the ls_script
    • You can use it standalone on any liquidsoap script
    • If any library change be it Airtime or Liquidsoap ,you just need to change the source from "s" to your source

    Always remember in programming "There is no one way to slew a Giant" ,You can write your own and itr might work for you and not others.


    But Your url output you print above carries a number of errors indicating that your script is not encoding properly and is different from my script (I highlight the errors)

    http://air.radiotime.com/Playing.ashx?partnerId=xxxxxxx&partnerKey=xxxxxxxxid=xxxxxxx&artist=&title=Excision+&+Savvy+-+Sleepless+(Xilent+Remix)&album=&com
    merical=


    My script is a suggestion,one of which I have 99.9% confident in

    But if you solely use the calendar or with a mod script ,I outline the Santa Claus fixed above

    There are many ways to do the script

    @John_Chewter way is here https://forum.sourcefabric.org/discussion/16848/tunein-updater-code-for-talk-shows-etc-updates-with-show-info-tested-on-2-5-1

    @Yannick way is here https://forum.sourcefabric.org/discussion/17003/another-approach-to-tunein-icecast-playlist

    And you are Bill's

    Use whichever suits you best.

    My only wish is that the team at Sourcefabric would adopt one of them and bring it to WAF and stability and just  abondon that concept  fixing things which by the next distro will break.

    People are just yearning to have some of there expectations met and if you have even "one half bake cake you can eat."

    Notice I am full of parables and metaphor,Although I might starve,my next job in the other life will be a Guess what "Comedian"


    VOISSES











    Post edited by Voisses Tech at 2015-01-30 10:23:22
    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.
  • & was added by forum.
    Problem is that full track name with artist goes to title, that i didn't met at older script. but older script make liquidsoap restart. Tried to use your updatemeta.liq script, it didn't help
    Post edited by Ярослав Гребнев at 2015-01-30 11:36:27
  • Okay (always copy your info into notepad or gedit before pasting it to the forum to removed the amp)

    just make this correction and it will cure the metadata regardless of whether its url encode properly

    do this
    you can use nano or pico instead of gedit
    gedit will give you the line numbers
    •  use the santa clause  fix  not the old update title (this fix render it redundant)
    • sudo gedit /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_lib.liq
     
    change line 35 to Line 40 to look like this

        if !stream_metadata_type == 1 then
          # [("title", "#{!show_name} - #{m['artist']} - #{m['title']}"), ("mapped", "true")]
            [("title", "#{!show_name} - #{m['title']}"),("artist", "#{m['artist']}"), ("mapped", "true")]


        elsif !stream_metadata_type == 2 then
          #[("title", "#{!station_name} - #{!show_name}"), ("mapped", "true")]
           [("title","#{m['title']}-#{!station_name} - #{!show_name}"),("artist", "#{m['artist']}"), ("mapped", "true")]


        else
       # this is where both title and artist are join as one like icecast metadata called song
           # [("title", "#{m['artist']} - #{m['title']}"), ("mapped", "true")]
             [("title", " #{m['title']}"),("artist", "#{m['artist']}"), ("mapped", "true")]
            
            
     check that there is no error using    
     sudo /usr/lib/airtime/pypo/bin/airtime-liquidsoap --check /usr/lib/airtime/pypo/bin/liquidsoap_scripts/ls_script.liq
     
     you should see something like this
     
     #########################################
    #           *** pypo  ***               #
    #     pypo notification gateway         #
    #########################################

     
     If all is okay stop or restart liquidsoap
     
     sudo service airtime-liquidsoap restart


    to see your logs

     sudo airtime-log -t liquidsoap

    VOISSES
    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.
  • if you still have joined artist install easytag and look at the tags for the individual mp3/ogg


    VOISSES
    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.
  • big thanks, now all works well
    2015/01/31 12:45:56 [stdout:3] http://air.radiotime.com/Playing.ashx?partnerId=XXXXXXXX&partnerKey=XXXXXXXXX&id=XXXXXX&artist=DNNYD
    +feat.+DyCy&title=+Dont+Hold+Me+Back+%28X-Wise+Remix%29&album=&commerical=
    2015/01/31 12:45:57 [lang:3] Server Connected:HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8"?>
    <opml version="1">
            <head>
            <status>200</status>

            </head>
            <body>
            </body>
    </opml> [("cache-control","private"), ("content-type","text/xml; charset=utf-8"), ("server","Microsoft-IIS/8.5"), ("set-cookie","das_fr
    _TEST=20150131T094613Z; expires=Mon, 02-Mar-2015 09:46:13 GMT; path=/"), ("x-aspnet-version","4.0.30319"), ("date","Sat, 31 Jan 2015 09
    :46:13 GMT"), ("connection","close"), ("content-length","131")]
    2015/01/31 12:45:57 [clock.wallclock_main:2] We must catchup 2.15 seconds!

  • Yes We Confirm.

    If you used any of the tune in script in this post,you may find that occasionally your connection will be lost

    Reasons

    This due to the fact that the scripts are making direct calls to liquidsoap .These direct public calls will have adverse effects as describe below

    Effects

    CPU
    Your CPU will use more processing power especially on single core and if you parse your logs you will see "2015/01/31 12:45:57 [clock.wallclock_main:2] We must catchup 2.15 seconds!

    Latency

    excessive glitches,stop and go even to a stage where your system will disconnect from the Stream server

    Fixes

    • pushing the output to a dev/null may work ( I have tested that and will not as per 2 below,we should not be doing this any way)
    • Create your own custom script in your own program language and make that script call your API,Then you can make public calls to  your custom script

    Please note this is not a bug in either liquidsoap or Airtime but just excessive calls to the server

    Addendum

    • These scripts works as is ,but only forms a foundation for you to expand,so if a little hitch,glitch,disconnection is not a problem dive in

    Good luck

    VOISSES


    Artist        : Richie Spice
    Title         : Confirmation
    Album         : Book Of Job
    Label         : VP Records
    Released date : March 15, 2011

    Go get Yourself a copy of the Album ( no pirate now)

    It Hot! Hot! Hot!



    Post edited by Voisses Tech at 2015-01-31 13:23:31
    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.