Makes mpd 'currentsong' send song with metadata

This commit is contained in:
Alexandre Petitjean 2015-01-20 22:05:14 +01:00
parent 64cab9ae95
commit 735d1662dc

View File

@ -34,7 +34,9 @@ def currentsong(context):
Displays the song info of the current song (same song that is
identified in status).
"""
tl_track = context.core.playback.current_tl_track.get()
tl_track = context.core.playback.current_metadata_track.get()
if tl_track is None:
tl_track = context.core.playback.current_tl_track.get()
if tl_track is not None:
position = context.core.tracklist.index(tl_track).get()
return translator.track_to_mpd_format(tl_track, position=position)