Saturday, August 14, 2010

How to fix UPNP on Rhythmbox under Ubuntu Lucid

I just got fuppes installed on my shiny new Drobo FS but I realized that whenever I try to connect to it via the upnp plugin in Rhythmbox it throws an exception:

File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 371, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/rhythmbox/plugins/upnp_coherence/UpnpSource.py", line 135, in new_process_media_server_browse
    seconds = int(h)*3600 + int(m)*60 + int(s)
exceptions.ValueError: invalid literal for int() with base 10: '54.00'


To fix it I just changed line 135 of /usr/lib/rhythmbox/plugins/upnp_coherence/UpnpSource.py to:

seconds = int(h)*3600 + int(m)*60 + int(eval(s))

1 comments:

  1. Great, looked quite a while vor a solution about this issue. Many many thanks.
    This also applies on Ubuntu 10.10 (Maverick).

    ReplyDelete