Menu

#62 Show streaminfo in webradio

Freevo 1.x series
closed
nobody
5
2007-01-19
2006-10-31
Japie
No

Hello,

It would be nice if the webradio would show the song
info of the song it's playing.

Discussion

  • Chandan Pitta

    Chandan Pitta - 2006-11-03

    Logged In: YES
    user_id=1636207

    I modified mplayer.py under audio/plugins to show stream
    information if available. Please review and patch if acceptable.

    Index: src/audio/plugins/mplayer.py

    --- src/audio/plugins/mplayer.py (revision 8530)
    +++ src/audio/plugins/mplayer.py (working copy)
    @@ -302,9 +302,18 @@
    for p in self.stdout_plugins:
    p.stdout(line)

    + if line.startswith("ICY Info"):
    + titleKey = "StreamTitle='"
    + titleIndex = line.find(titleKey)
    + if titleIndex != -1:
    + titleStart = titleIndex + len(titleKey)
    + titleEnd = line.find("'", titleStart)
    + if titleEnd > titleStart:
    + self.item.info['artist'] =
    line[titleStart:titleEnd]

    +
    def stderr_cb(self, line):
    if line.startswith('Failed to open') and \ (not self.item or not self.item.elapsed):

     
  • Duncan Webb

    Duncan Webb - 2007-01-03
    • status: open --> pending
     
  • Duncan Webb

    Duncan Webb - 2007-01-03

    Logged In: YES
    user_id=104395
    Originator: NO

    Patch applied to rel-1 at r8921

    Thanks, please test and report if there are any errors

     
  • Japie

    Japie - 2007-01-04

    Logged In: YES
    user_id=325225
    Originator: YES

    Works splended on 1.6.2, streams with info show there info, streams without behave like always.
    Thank you!

     
  • Japie

    Japie - 2007-01-04
    • status: pending --> open
     
  • Duncan Webb

    Duncan Webb - 2007-01-04
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.