summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-08-29 05:20:27 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-08-29 05:20:27 +0300
commit6f0f915b05d2cc3f2bca6a3879a83b3d1893d80a (patch)
treefccd8f574ba0dc1b708d170ffbd1777706813183
parent0432a8ab0a4b025431a328cbe82edf2348c32e92 (diff)
Add track length to mpris metadata propschanged signalHEADmaster
-rwxr-xr-xvalosoitin/Valosoitin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/valosoitin/Valosoitin.py b/valosoitin/Valosoitin.py
index 6a6bde4..d1f9360 100755
--- a/valosoitin/Valosoitin.py
+++ b/valosoitin/Valosoitin.py
@@ -616,7 +616,8 @@ class Valosoitin(object):
616 "mpris:trackid": dbus.String(f), 616 "mpris:trackid": dbus.String(f),
617 "xesam:title": dbus.String(titles), 617 "xesam:title": dbus.String(titles),
618 "xesam:artist": dbus.Array(artists, signature="s"), 618 "xesam:artist": dbus.Array(artists, signature="s"),
619 "xesam:album": dbus.String(albums) 619 "xesam:album": dbus.String(albums),
620 "mpris:length": player.play_length * 1000000,
620 }, signature="sv") 621 }, signature="sv")
621 622
622 self.dbo.playerprops["Metadata"] = metadata 623 self.dbo.playerprops["Metadata"] = metadata