Issue #10 resolved

Won't play station

Carlos Ribeiro
repo owner created an issue

http://82.135.234.195/fm99.asx won't start (could not determine type of stream), but firefox plays it without problems.

Comments (7)

  1. Carlos Ribeiro reporter

    Just did a bit of testing and the (http://82.135.234.195/fm99.asx) stream plays fine.

    This does not:

    http://www.antfarm.co.za/clients/capetalk/capetalk.asx

    After playing the first stream it crashes failing to parse the playlist. I added a few prints so you can see what's going on:

    Loading configuration... /home/ebruck/.local/share/radiotray/bookmarks.xml /home/ebruck/.local/share/radiotray/config.xml PLS playlist decoder M3U playlist decoder ASX-familiy playlist decoder XSPF playlist decoder ASF playlist decoder RAM playlist decoder Using url timeout = 100 Requesting stream... http://www.antfarm.co.za/clients/capetalk/capetalk.asx Metadata obtained... Content-Type: video/x-ms-asf Checking decoder Checking decoder Stream is readable by ASX Playlist Decoder Downloading playlist... <ASX VERSION="3.0"> <TITLE>Cape Talk Radio</TITLE> <author>Powered by Antfarm</author> <copyright>2010, Primedia Broadcasting</copyright> <abstract>Streaming radio, live from Cape Town</abstract> <MOREINFO HREF="http://www.capetalk.co.za" TARGET="_blank" />

    <ENTRY> <TITLE>Cape Talk Radio</TITLE> <author>Powered by Antfarm</author> <copyright>2010, Primedia Broadcasting</copyright> <abstract>Streaming radio, live from Cape Town</abstract>

    <REF HREF="mms:85.10.196.144/capetalk-ondemand/capetalk_preroll.wma" /> <REF HREF="http://85.10.196.144/capetalk-ondemand/capetalk_preroll.wma" />

    </ENTRY> <ENTRY> <TITLE>Cape Talk Radio</TITLE> <author>Powered by Antfarm</author> <copyright>2010, Primedia Broadcasting</copyright> <abstract>Streaming radio, live from Cape Town</abstract>

    <REF HREF="mms:85.10.196.144/capetalk-live" /> <REF HREF="http://85.10.196.144/capetalk-live" /> </ENTRY> </ASX> Playlist downloaded Decoding playlist... ['mms:85.10.196.144/capetalk-ondemand/capetalk_preroll.wma', 'http://85.10.196.144/capetalk-ondemand/capetalk_preroll.wma', 'mms:85.10.196.144/capetalk-live', 'http://85.10.196.144/capetalk-live'] Play mms:85.10.196.144/capetalk-ondemand/capetalk_preroll.wma Not an HTTP url. Maybe direct stream... Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_STATE_CHANGED Received MESSAGE_EOS Play http://85.10.196.144/capetalk-ondemand/capetalk_preroll.wma Requesting stream... http://85.10.196.144/capetalk-ondemand/capetalk_preroll.wma Metadata obtained... Content-Type: audio/x-ms-wax Checking decoder Checking decoder Stream is readable by ASX Playlist Decoder Downloading playlist... [Reference] Ref1=http://85.10.196.144/capetalk-ondemand/capetalk_preroll.wma?MSWMExt=.asf Ref2=http://85.10.196.144:80/capetalk-ondemand/capetalk_preroll.wma?MSWMExt=.asf

    Playlist downloaded Decoding playlist... Traceback (most recent call last): File "/home/ebruck/projects/radiotray/src/AudioPlayerGStreamer.py", line 99, in on_message self.playNextStream() File "/home/ebruck/projects/radiotray/src/AudioPlayerGStreamer.py", line 74, in playNextStream self.playlist = self.decoder.getPlaylist(urlInfo) + self.playlist File "./StreamDecoder.py", line 106, in getPlaylist return urlInfo.getDecoder().extractPlaylist(urlInfo.getUrl()) File "./AsxPlaylistDecoder.py", line 71, in extractPlaylist result = root.xpath("ref/href") File "lxml.etree.pyx", line 1829, in lxml.etree._ElementTree.xpath (src/lxml/lxml.etree.c:42045) File "lxml.etree.pyx", line 1550, in lxml.etree._ElementTree._assertHasRoot (src/lxml/lxml.etree.c:39499) AssertionError: ElementTree not initialized, missing root

  2. Log in to comment