From b0624e2f8b9dbc5f6614de1b5d937b279605bd39 Mon Sep 17 00:00:00 2001 From: Artem Tarasov Date: Thu, 22 Dec 2011 23:11:38 +0400 Subject: switched to mtime --- src/Plugins/Monitors/Mpris.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Plugins/Monitors') diff --git a/src/Plugins/Monitors/Mpris.hs b/src/Plugins/Monitors/Mpris.hs index 32f72d4..1bac05b 100644 --- a/src/Plugins/Monitors/Mpris.hs +++ b/src/Plugins/Monitors/Mpris.hs @@ -44,7 +44,7 @@ instance MprisVersion MprisVersion1 where getMetadataReply MprisVersion1 c p = do player <- getProxy MprisVersion1 c p C.call player "org.freedesktop.MediaPlayer" "GetMetadata" [] - fieldsList MprisVersion1 = [ "album", "artist", "arturl", "time", "title", "tracknumber" ] + fieldsList MprisVersion1 = [ "album", "artist", "arturl", "mtime", "title", "tracknumber" ] data MprisVersion2 = MprisVersion2 instance MprisVersion MprisVersion2 where @@ -116,7 +116,7 @@ makeList version md = map getStr (fieldsList version) where TypeString -> fromVar v TypeInt32 -> let num = fromVar v in case str of - "time" -> formatTime num + "mtime" -> formatTime (num `div` 1000) "tracknumber" -> printf "%02d" num "mpris:length" -> formatTime (num `div` 1000000) "xesam:trackNumber" -> printf "%02d" num -- cgit v1.2.3