core: current_metadata_track is TlTrack, not Track
This commit is contained in:
parent
b7ed2b8681
commit
1b6db5695d
@ -52,6 +52,17 @@ class PlaybackController(object):
|
||||
Read-only. Extracted from :attr:`current_tl_track` for convenience.
|
||||
"""
|
||||
|
||||
def get_current_metadata_track(self):
|
||||
return self.current_metadata_track
|
||||
|
||||
current_metadata_track = None
|
||||
"""
|
||||
A :class:`mopidy.models.TlTrack` with updated metadata for the currently
|
||||
playing track.
|
||||
|
||||
:class:`None` if no track is currently playing.
|
||||
"""
|
||||
|
||||
def get_state(self):
|
||||
return self._state
|
||||
|
||||
@ -126,15 +137,6 @@ class PlaybackController(object):
|
||||
mute = property(get_mute, set_mute)
|
||||
"""Mute state as a :class:`True` if muted, :class:`False` otherwise"""
|
||||
|
||||
def get_current_metadata_track(self):
|
||||
return self.current_metadata_track
|
||||
|
||||
current_metadata_track = None
|
||||
"""
|
||||
The currently playing metadata :class:`mopidy.models.Track`,
|
||||
or :class:`None`.
|
||||
"""
|
||||
|
||||
# Methods
|
||||
|
||||
# TODO: remove this.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user