Philipp Hörist pushed to branch master at gajim / gajim

Commits:
3dfdc202 by Tomasz Miąsko at 2017-01-23T15:14:28+01:00
Quodlibet publishes duration information as decimal with fractional part.

- - - - -
a68fccd8 by Philipp Hörist at 2017-01-24T01:45:48+01:00
Merge branch 'quodlibet' into 'master'

Quodlibet publishes duration information as decimal with fractional part.

See merge request !36
- - - - -


1 changed file:

- src/music_track_listener.py


Changes:

=====================================
src/music_track_listener.py
=====================================
--- 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):



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/compare/9b5ec09c27e7886c57c3be4d917b019d89ff0558...a68fccd8f33216e8b71ecdb56bcee9bc648b8dad
_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to