2013-09-26 17:14:40 +02:00

14 lines
679 B
Plaintext

$NetBSD: patch-aa,v 1.10 2009/07/31 08:50:27 drochner Exp $
--- plugins/coherence/upnp_coherence/UpnpSource.py.orig 2009-06-30 01:38:57.000000000 +0200
+++ plugins/coherence/upnp_coherence/UpnpSource.py
@@ -132,7 +132,7 @@ class UpnpSource(rb.BrowserSource,log.Lo
if duration is not None:
h,m,s = duration.split(':')
- seconds = int(h)*3600 + int(m)*60 + int(s)
+ seconds = int(h)*3600 + int(m)*60 + int(round(float(s)))
self.info("%r %r:%r:%r %r", duration, h, m , s, seconds)
self.__db.set(entry, rhythmdb.PROP_DURATION, seconds)