× Warning! This forum is in archival status. New contributions may not work.
Airtime 2.4 send 3 to 4 times the metatag
  • Hi,

    Since we have upgraded to airtime 2.4, when we play scheduled track, shoutcast receive the metatag up to 4 times.

    Here an example of a SHOUTcast 1.9.8 history:
    Played @ Song Title
    17:10:47 Martin Garrix - Animals (Original Mix) Current Song
    17:10:47 Martin Garrix - Animals (Original Mix)
    17:10:47 Martin Garrix - Animals (Original Mix)
    17:10:47 Martin Garrix - Animals (Original Mix)
    17:07:02 SAVOY & Heather Bright - We Are The Sun (Sick Individuals Remix)
    17:07:02 SAVOY & Heather Bright - We Are The Sun (Sick Individuals Remix)
    17:07:01 SAVOY & Heather Bright - We Are The Sun (Sick Individuals Remix)
    17:07:01 SAVOY & Heather Bright - We Are The Sun (Sick Individuals Remix)

    If you check the logs:

    2013/08/16 21:10:47 [lang:3] vars.show_name
    2013/08/16 21:10:47 [server:3] Client localhost disconnected.
    2013/08/16 21:10:47 [s0:3] Finished with "/var/tmp/airtime/pypo/cache/scheduler/2.mp3".
    2013/08/16 21:10:47 [cue_cut_5465:3] End of track before cue-out point.
    2013/08/16 21:10:47 [amplify_5470:3] End of the current overriding.
    2013/08/16 21:10:47 [s0:3] Prepared "/var/tmp/airtime/pypo/cache/scheduler/1.mp3" (RID 0).
    2013/08/16 21:10:47 [amplify_5470:3] Overriding amplification: 1.000000.
    2013/08/16 21:10:47 [lang:3] /usr/lib/airtime/pypo/bin/liquidsoap_scripts/notify.sh --media-id=5 &
    2013/08/16 21:10:47 [lang:3] Using stream_format 0
    2013/08/16 21:10:47 [lang:3] Using stream_format 0
    2013/08/16 21:10:47 [shoutcast_stream_2:3] Metadata update may have failed with error: bad answer
    2013/08/16 21:10:47 [lang:3] Using stream_format 0
    2013/08/16 21:10:47 [stdout:3] 
    2013/08/16 21:10:47 [stdout:3] #########################################
    2013/08/16 21:10:47 [stdout:3] #           *** pypo  ***               #
    2013/08/16 21:10:47 [stdout:3] #     pypo notification gateway         #
    2013/08/16 21:10:47 [stdout:3] #########################################
    2013/08/16 21:10:47 [shoutcast_stream_2:3] Metadata update may have failed with error: bad answer
    2013/08/16 21:10:47 [shoutcast_stream_2:3] Metadata update may have failed with error: bad answer
    2013/08/16 21:10:48 [shoutcast_stream_2:3] Metadata update may have failed with error: bad answer

    That's on a fresh install of Airtime 2.4 no custom script, no settings modification. 
  • 11 Comments sorted by
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    Hi,
    this could be a bug, but I'm not sure.
    Would be interesting if it's the same with Icecast.

    I am not sure if Airtime supports Shoutcast in future and would recommend using Icecast instead.
    I don't know if you can switch, but I suggest switching to Icecast.

    You could go to the bug tracker http://dev.sourcefabric.org and create a ticket.

    cheers
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • Vote Up0Vote Down Cliff WangCliff Wang
    Posts: 339Member, Sourcefabric Team
    Sounds similar to this problem: http://dev.sourcefabric.org/browse/CC-5290

    Simple way to verify it, just run command in psql:
     select sc.starts as track_starts,sc.ends as track_ends,sc.file_id, sc.media_item_played,s.name,i.starts as show_starts,i.ends as show_ends,i.id as showinstance_id,i.modified_instance from cc_schedule as sc left join cc_show_instances as i on sc.instance_id=i.id left join cc_show as s on i.show_id=s.id where sc.starts<i.starts order by sc.starts; 

    If it is (any items show up), the workaround is to remove those items from database manually. This problem will be fixed in 2.4.1.

    Cloud Radio -> http://airtime.pro
  • Sorry to resurrect a dead topic but I was seeing this on Airtime 2.5.1 on two Shoutcast streams.
    Following @hoerich's suggestion that, I added an Icecast stream and I see it there, too.

    Attached are a dump from Airtime's cc_playout_history | cc_files tables
    and the playlist log from the Icecast server.

    edit: Oops. I should have paid more attention to my formatting on the playlist.pdf from the ICecast server log. I can't delete it, but attached is an update.
    Post edited by Matthew Pawloski at 2013-12-13 20:03:47
  • Yes, still have that issue in 2.5.1, just tested from a fresh install on ubuntu 12.04
  • Same problem (2.4.1) ; did anyone find how to tweak this ?
  • This happens on Pro too, right?
  • Vote Up0Vote Down Albert SantoniAlbert Santoni
    Posts: 68Member, Sourcefabric Team, Airtime Moderator
    This is a real bug that seems to occur (only?) with Shoutcast. It's a bug in our Liquidsoap script. I think it's doing something like sending the metadata an extra time for each stream we have in the script...

    It hasn't been a priority to fix this, but we'll definitely accept a patch if anyone wants to wade into ls_script.liq and see what they can find...
    Airtime Developer @ Sourcefabric
  • Whilst I have not used Shoutcast (I have not the time to periodically start that server,shoutcast for me best to use external hosting),If you have no real specific reason to install shoutcast ans just wanted to be listed in the directory you could

    1. Make two additional  consecutive listen ports (like 10001 and 10002) in icecast xml
    2. Make a directory listing directives like this
    <directory>
            <yp-url-timeout>15</yp-url-timeout>
            <yp-url>http://yp.shoutcast.com</yp-url&gt;
        </directory>

    This will only be of shoutcast v1 listing type.

    I think some where in the ls_lib there is a reference to this as a bug but since I have
    placed this

    s = map_metadata(update=false,append_title, s)

    at about line 283 in the ls_script

    In fact based on one of the Api server, I have two timed script that sends metadata at intervals

    so if someone with a shoutcast server tells me if that works or when I install a server this week I will make a suggestion

    My feeling though it might be a tweak in shoutcast

    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.
  • Confirmed on Icecast 2.3.3-kh7, too. It's not just Shoutcast.