docs: Fix docstring errors
This commit is contained in:
parent
bec91284be
commit
d226db9039
@ -324,6 +324,8 @@ class PlaybackController(object):
|
|||||||
def on_end_of_track(self):
|
def on_end_of_track(self):
|
||||||
"""
|
"""
|
||||||
Tell the playback controller that end of track is reached.
|
Tell the playback controller that end of track is reached.
|
||||||
|
|
||||||
|
Used by event handler in :class:`mopidy.core.Core`.
|
||||||
"""
|
"""
|
||||||
if self.state == PlaybackState.STOPPED:
|
if self.state == PlaybackState.STOPPED:
|
||||||
return
|
return
|
||||||
@ -343,7 +345,7 @@ class PlaybackController(object):
|
|||||||
"""
|
"""
|
||||||
Tell the playback controller that the current playlist has changed.
|
Tell the playback controller that the current playlist has changed.
|
||||||
|
|
||||||
Used by :class:`mopidy.core.CurrentPlaylistController`.
|
Used by :class:`mopidy.core.TracklistController`.
|
||||||
"""
|
"""
|
||||||
self._first_shuffle = True
|
self._first_shuffle = True
|
||||||
self._shuffled = []
|
self._shuffled = []
|
||||||
|
|||||||
@ -63,8 +63,7 @@ class TracklistController(object):
|
|||||||
"""
|
"""
|
||||||
Add the track to the end of, or at the given position in the tracklist.
|
Add the track to the end of, or at the given position in the tracklist.
|
||||||
|
|
||||||
Triggers the :method:`mopidy.core.CoreListener.tracklist_changed`
|
Triggers the :meth:`mopidy.core.CoreListener.tracklist_changed` event.
|
||||||
event.
|
|
||||||
|
|
||||||
:param track: track to add
|
:param track: track to add
|
||||||
:type track: :class:`mopidy.models.Track`
|
:type track: :class:`mopidy.models.Track`
|
||||||
@ -90,12 +89,11 @@ class TracklistController(object):
|
|||||||
"""
|
"""
|
||||||
Append the given tracks to the tracklist.
|
Append the given tracks to the tracklist.
|
||||||
|
|
||||||
Triggers the :method:`mopidy.core.CoreListener.tracklist_changed`
|
Triggers the :meth:`mopidy.core.CoreListener.tracklist_changed` event.
|
||||||
event.
|
|
||||||
|
|
||||||
:param tracks: tracks to append
|
:param tracks: tracks to append
|
||||||
:type tracks: list of :class:`mopidy.models.Track`
|
:type tracks: list of :class:`mopidy.models.Track`
|
||||||
:rtype: list of class:`mopidy.models.TlTrack`
|
:rtype: list of :class:`mopidy.models.TlTrack`
|
||||||
"""
|
"""
|
||||||
tl_tracks = []
|
tl_tracks = []
|
||||||
for track in tracks:
|
for track in tracks:
|
||||||
@ -110,8 +108,7 @@ class TracklistController(object):
|
|||||||
"""
|
"""
|
||||||
Clear the tracklist.
|
Clear the tracklist.
|
||||||
|
|
||||||
Triggers the :method:`mopidy.core.CoreListener.tracklist_changed`
|
Triggers the :meth:`mopidy.core.CoreListener.tracklist_changed` event.
|
||||||
event.
|
|
||||||
"""
|
"""
|
||||||
self._tl_tracks = []
|
self._tl_tracks = []
|
||||||
self.version += 1
|
self.version += 1
|
||||||
@ -156,8 +153,7 @@ class TracklistController(object):
|
|||||||
"""
|
"""
|
||||||
Move the tracks in the slice ``[start:end]`` to ``to_position``.
|
Move the tracks in the slice ``[start:end]`` to ``to_position``.
|
||||||
|
|
||||||
Triggers the :method:`mopidy.core.CoreListener.tracklist_changed`
|
Triggers the :meth:`mopidy.core.CoreListener.tracklist_changed` event.
|
||||||
event.
|
|
||||||
|
|
||||||
:param start: position of first track to move
|
:param start: position of first track to move
|
||||||
:type start: int
|
:type start: int
|
||||||
@ -192,8 +188,7 @@ class TracklistController(object):
|
|||||||
|
|
||||||
Uses :meth:`filter()` to lookup the tracks to remove.
|
Uses :meth:`filter()` to lookup the tracks to remove.
|
||||||
|
|
||||||
Triggers the :method:`mopidy.core.CoreListener.tracklist_changed`
|
Triggers the :meth:`mopidy.core.CoreListener.tracklist_changed` event.
|
||||||
event.
|
|
||||||
|
|
||||||
:param criteria: on or more criteria to match by
|
:param criteria: on or more criteria to match by
|
||||||
:type criteria: dict
|
:type criteria: dict
|
||||||
@ -211,8 +206,7 @@ class TracklistController(object):
|
|||||||
Shuffles the entire tracklist. If ``start`` and ``end`` is given only
|
Shuffles the entire tracklist. If ``start`` and ``end`` is given only
|
||||||
shuffles the slice ``[start:end]``.
|
shuffles the slice ``[start:end]``.
|
||||||
|
|
||||||
Triggers the :method:`mopidy.core.CoreListener.tracklist_changed`
|
Triggers the :meth:`mopidy.core.CoreListener.tracklist_changed` event.
|
||||||
event.
|
|
||||||
|
|
||||||
:param start: position of first track to shuffle
|
:param start: position of first track to shuffle
|
||||||
:type start: int or :class:`None`
|
:type start: int or :class:`None`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user