New Freevo Shoutcast Plugin

Thanks to the spot-on cleanup/enhancement work done by Dan, I’m quite happy to put up a new tarball of the Freevo Shoutcast plugin. He details his changes in his earlier comment, but I’ll recap here:

  • Detaching player to idlebar works
  • Statusbar during feeds fetching
  • Unused variables removed
  • Cleaned up code to Freevo standards
  • Imports audioitem instead of copying code

Mucho improvements! You rock dude!

shoutcast-0.6.tar.gz
python-shoutcast-0.6.tar.gz

3 thoughts on “New Freevo Shoutcast Plugin

  1. Got some strange errors…

    Getting fresh feed
    Traceback (most recent call last):
    File “”, line 1, in ?
    File “/usr/lib/python2.4/site-packages/py_shoutcast/feeds.py”, line 194, in parse_stations
    parseString(self.stations,parseXML)
    File “/usr/lib/python2.4/site-packages/_xmlplus/sax/__init__.py”, line 47, in parseString
    parser.parse(inpsrc)
    File “/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py”, line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
    File “/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py”, line 123, in parse
    self.feed(buffer)
    File “/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py”, line 216, in feed
    self._parser.Parse(data, isFinal)
    File “/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py”, line 315, in end_element
    self._cont_handler.endElement(name)
    File “/usr/lib/python2.4/site-packages/py_shoutcast/feeds.py”, line 126, in endElement
    self.parse_genres(genre_regex,{‘ID’:self.count,’Name’:self.Name,’PLS_URL’:self.pls_url,’Genres’:self.Genres,’NowPlaying’:self.NowPlaying,’Listeners’:self.Listeners,’Bitrate’:self.Bitrate})
    AttributeError: StationParser instance has no attribute ‘NowPlaying’

    Appended patch for this problem, and HTTP 302 redirect problem (using FancyURLOpener):
    Download: python-shoutcast-0.6_bugfix_and_fancyurl.patch

Leave a Reply