Use proper dictionary for getting “elapsed” value in mpd bindings

Fixes #1550
This commit is contained in:
Foo 2016-03-27 03:22:05 +03:00
parent a44c9a8ec9
commit dc14421fdb
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ class MpdPlayerSegment(PlayerSegment):
'album': now_playing.get('album'),
'artist': now_playing.get('artist'),
'title': now_playing.get('title'),
'elapsed': _convert_seconds(now_playing.get('elapsed', 0)),
'elapsed': _convert_seconds(status.get('elapsed', 0)),
'total': _convert_seconds(now_playing.get('time', 0)),
}