3 --- plugins/coherence/upnp_coherence/MediaPlayer.py.orig 2010-03-25 00:10:11.000000000 +0000
4 +++ plugins/coherence/upnp_coherence/MediaPlayer.py
5 @@ -13,7 +13,7 @@ import rhythmdb
6 from coherence.upnp.core.soap_service import errorCode
7 from coherence.upnp.core import DIDLLite
10 +import coherence.extern.louie as louie
12 from coherence.extern.simple_plugin import Plugin
14 @@ -302,7 +302,7 @@ class RhythmboxPlayer(log.Loggable):
16 if duration is not None:
17 h,m,s = duration.split(':')
18 - seconds = int(h)*3600 + int(m)*60 + int(s)
19 + seconds = int(h)*3600 + int(m)*60 + int(round(float(s)))
20 self.info("%r %r:%r:%r %r", duration, h, m , s, seconds)
21 self.shell.props.db.set(self.entry, rhythmdb.PROP_DURATION, seconds)