Display next and previous song at my website possible?
  • Hey Community,

    i looked the hole day for a solution and also searched here in the forum, but can't find an answer.

    I want to show the next (1, 2, 3 or more) songs and the previous songs on my website. I use Icecast and can`t find a possibility to get this information. And i can't find a possibility to get this information directly from Airtime. But sure, Airtime knows this. How can i get this information? Unimportant if i get it from Icecast or Airtime...

    I can't switch to SHOUTcast, where i would know how to get this information - buy a licence for mp3 with SHOUTcast is not possible at the moment.

    I would love to have this function on my website... Any tipps, tricks, hints?

    Thank you all! 
  • 2 Comments sorted by
  • Ok, now i found my.awesome.bla/api/live-info/?callback. Fine. There is one previous, one current and onenext track. Better than nothing... Now i have to struggle, how to handle/work/read this data.

    But any ideas how to get more next tracks? I mean,my Airtime should know that...
  • Hi Paul,

    I guess it comes down to whether or not you want to use the APIs to obtain information, or grok server logs etc.

    Notice the API is "live" information, hence the brevity of details made available. There is also the "week-info" information, but this returns show details, not track listings. 

    Airtime also provides a playout history export log - see http://sourcefabric.booktype.pro/airtime-25-for-broadcasters/playout-history/. This feature is not easy to use in an automated sense (i.e. like the API calls) due to authentication requirements.

    If none of the above meet your needs, I guess you have some options:
    • develop some interface "glue" by way of a script to harvest the live data and create your own track history (as I suggested at http://forum.sourcefabric.org/discussion/comment/29225). This would be really easy for someone with some scripting skills: 10 lines of python/perl/ruby/javascript triggered via cron or similar would get you there.
    • develop a manual update procedure that uses the playout history export as an input, and outputs this information in a more usable manner
    • if you have Airtime installed on your own server, look at harvesting details in the liquidsoap log
    • Propose a feature enhancement using Airtime's issue management system: http://dev.sourcefabric.org/browse/CC
    Of course we can also wait and see what other community members have to say about this :)

    Hope that helps,

    Steven