From 3dfdc2027219055ef23fa74000a3fd72db2b913b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Mon, 23 Jan 2017 15:14:28 +0100 Subject: [PATCH] Quodlibet publishes duration information as decimal with fractional part. --- src/music_track_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/music_track_listener.py b/src/music_track_listener.py index 8bffd576c..a4733efba 100644 --- a/src/music_track_listener.py +++ b/src/music_track_listener.py @@ -198,7 +198,7 @@ class MusicTrackListener(GObject.GObject): info.title = props.get('title', None) info.album = props.get('album', None) info.artist = props.get('artist', None) - info.duration = int(props.get('~#length', 0)) + info.duration = float(props.get('~#length', 0)) return info def get_playing_track(self):