Makes mpd 'currentsong' send song with metadata
This commit is contained in:
parent
64cab9ae95
commit
735d1662dc
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user