Merge pull request #1559 from ZyX-I/fix-1550

Use proper dictionary for getting “elapsed” value in mpd bindings
This commit is contained in:
Nikolai Aleksandrovich Pavlov 2016-03-27 03:08:34 +03:00
commit 38ce0e73c8
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)),
}