Trouble with Current Show
  • I added the frontend-script to site, which contents current show of Airtime. It was ok, but sometime later my PostgreSQL database was crashed. I successfull reinstalled it and now it works.

    So, the trouble is: for example, we have the "SHOW", which starts on 18:00. Before that, we have the Non-Stop, which starts on 12:00 and overs on 17:55. When time to Non-Stop playing - frontend script showing the next show in shcedule - SHOW. What is that? Why it's going on? 

    Next situation is: for example, there is 12:00 o'clock. There is any shows on it (stream is off). The Non-STOP starts on 13:00. And when show ISN'T started -  script showing us, that NON-STOP already started (but in Airtime it isn't.) 

    Is that something with the script?

    P.S. Sorry, for mistakes in English.

    Thank you, for Your answer!

    P.S.S. Sorry about sorry for the frequent visits to Techinal Support.
  • 7 Comments sorted by
  • What do you mean by " frontend script" ?


    Airtime Pro Hosting: http://airtime.pro
  • Hi!

    https://wiki.sourcefabric.org/display/CC/Frontend+Widgets

    I mean this.

    This is from the jquery.showinfo.js 
                obj.empty();
                  obj.append("<span class='next_show_span'>"+nextShowName+
                    "</span>");
            }


    I have modifided lines, which show current show. (there is a <span>s)




  • In the site's source I've added:

    (script, which shows Current Show)
    to <head>:
    <script>
    $(document).ready(function() {
    $("span.rj_top").airtimeLiveInfo({
      sourceDomain: "http://radio.economfm.com.ua/",
      text: {onAirNow:'', offline:"Offline", current:"Current", next:"next"},
      updatePeriod: 10 //seconds
    });
    });
    </script>

    And to the place, where it needs:
    <span class="rj_top"></span>


    Script, which shows Next Show:

    <script>
    $(document).ready(function() {
     $("span.next_show_span").airtimeLiveInfo({
       sourceDomain: "http://radio.economfm.com.ua/",
       text: {onAirNow:'', offline:"Offline", current:"Current", next:"next"},
       updatePeriod: 10 //seconds
     });
    });
    </script>

    and to the html

    <span class="next_show_span"></span>

    :(
  • Everythong was ok, but than PostgreSQL was crashed, like I alredy said. Than I reinstalled the Airtime with all includes and - the same thing. 

    P.S. There is new trouble with Show (I think that it's all because of some 1 bug.) - Show doesn't start. It starts after rebooting the server :(

    How I hate troubles with that. Grr.
  • Ok I'm having a little trouble figuring out exactly what the problem is - it seems there are several mentioned in this thread. Can you please narrow down your description to one problem, and we'll see if we can resolve it.
    Airtime Pro Hosting: http://airtime.pro
  • Of course. Front-end scripts, witch shows current show and next show isn't working. Everything was ok, but than just nothing :(
  • Maybe server closed access to this information? 

    In the Airtime this:
    Allow Remote Websites To Access "Schedule" Info?
    (Enable this to make front-end widgets work.)

    On the "Enabled".