$NetBSD: patch-ad,v 1.9 2010/05/20 21:15:54 drochner Exp $

--- plugins/coherence/upnp_coherence/MediaPlayer.py.orig	2010-03-25 00:10:11.000000000 +0000
+++ plugins/coherence/upnp_coherence/MediaPlayer.py
@@ -13,7 +13,7 @@ import rhythmdb
 from coherence.upnp.core.soap_service import errorCode
 from coherence.upnp.core import DIDLLite
 
-import louie
+import coherence.extern.louie as louie
 
 from coherence.extern.simple_plugin import Plugin
 
@@ -302,7 +302,7 @@ class RhythmboxPlayer(log.Loggable):
 
                 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.shell.props.db.set(self.entry, rhythmdb.PROP_DURATION, seconds)
 
