Refer to the Track class in next_track/previous_track docs
This commit is contained in:
parent
09b8319f0a
commit
45e5b3fd3e
@ -250,7 +250,7 @@ class BasePlaybackController(object):
|
||||
|
||||
@property
|
||||
def next_track(self):
|
||||
"""The next track in the playlist."""
|
||||
"""The next :class:`mopidy.models.Track` in the playlist."""
|
||||
try:
|
||||
return self.backend.current_playlist.playlist.tracks[
|
||||
self.playlist_position + 1]
|
||||
@ -270,7 +270,7 @@ class BasePlaybackController(object):
|
||||
|
||||
@property
|
||||
def previous_track(self):
|
||||
"""The previous track in the playlist."""
|
||||
"""The previous :class:`mopidy.models.Track` in the playlist."""
|
||||
try:
|
||||
return self.backend.current_playlist.playlist.tracks[
|
||||
self.playlist_position - 1]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user