publishing tracks history
  • How could I publish in HTML a history of played tracks, more than the previous/current/next track? I need to show the past 5~10 tracks.
    I've checked this forum and the manuals but could not find an answer.


    Regards / Horia
  • 3 Comments sorted by
  • Couldn't you harvest the information from the live-info json feed (see http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/exporting-the-schedule/), and build up your own history? You could use the starts/ends timestamps to tell you when more information is available...
  • Your suggestion is indeed something I could pursue using a server-side backend to poll the live info feed: would require some minimal persistence and a permanent loop for refreshing the information. This is not that complicated but can add complexity to a minimal web site which otherwise would not need any backend at all. 

    Unless there is a better alternative?

    This could be avoided if the live info API would be able to return a configurable number of results, of even just a fixed number and clients could choose how many to display.

    Post edited by horia at 2014-04-29 04:39:58
  • None of the solutions are easy.

    The one recommended is recommended and best for where you will have many hits to your webpage or server.

    @horia
    "Your suggestion is indeed something I could pursue using a server-side backend to poll the live info feed"

    You already have a server-side backend  when you install Airtime (locally or on your host).

    Another is http://forum.sourcefabric.org/discussion/15939/free-download-now-playing-script-sync-with-last-fm-coverbiolyricslink-to-buy-

    I used  php (http-get) to harvest liquidsoap and then write it to a text file for my log,but can be applicable

    Good Luck
    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.