Hide helper functions from MPD docs
This commit is contained in:
parent
1f321b4b07
commit
7a9eeb3bc2
@ -32,7 +32,6 @@ MPD protocol
|
||||
.. automodule:: mopidy.frontends.mpd.protocol
|
||||
:synopsis: MPD protocol
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
Audio output
|
||||
@ -40,7 +39,6 @@ Audio output
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.audio_output
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
Command list
|
||||
@ -48,7 +46,6 @@ Command list
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.command_list
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
Connection
|
||||
@ -56,7 +53,6 @@ Connection
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.connection
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
Current playlist
|
||||
@ -64,14 +60,12 @@ Current playlist
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.current_playlist
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
Music database
|
||||
--------------
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.music_db
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
Playback
|
||||
@ -79,7 +73,6 @@ Playback
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.playback
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
Reflection
|
||||
@ -87,7 +80,6 @@ Reflection
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.reflection
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
Status
|
||||
@ -95,7 +87,6 @@ Status
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.status
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
Stickers
|
||||
@ -103,7 +94,6 @@ Stickers
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.stickers
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
|
||||
Stored playlists
|
||||
@ -111,4 +101,3 @@ Stored playlists
|
||||
|
||||
.. automodule:: mopidy.frontends.mpd.protocol.stored_playlists
|
||||
:members:
|
||||
:undoc-members:
|
||||
|
||||
@ -3,7 +3,7 @@ import re
|
||||
from mopidy.frontends.mpd import handle_pattern, MpdNotImplemented
|
||||
from mopidy.frontends.mpd.protocol import stored_playlists
|
||||
|
||||
def build_query(mpd_query):
|
||||
def _build_query(mpd_query):
|
||||
"""
|
||||
Parses a MPD query string and converts it to the Mopidy query format.
|
||||
"""
|
||||
@ -62,7 +62,7 @@ def find(frontend, mpd_query):
|
||||
- does not add quotes around the field argument.
|
||||
- capitalizes the type argument.
|
||||
"""
|
||||
query = build_query(mpd_query)
|
||||
query = _build_query(mpd_query)
|
||||
return frontend.backend.library.find_exact(**query).mpd_format()
|
||||
|
||||
@handle_pattern(r'^findadd '
|
||||
@ -231,7 +231,7 @@ def search(frontend, mpd_query):
|
||||
- does not add quotes around the field argument.
|
||||
- capitalizes the field argument.
|
||||
"""
|
||||
query = build_query(mpd_query)
|
||||
query = _build_query(mpd_query)
|
||||
return frontend.backend.library.search(**query).mpd_format()
|
||||
|
||||
@handle_pattern(r'^update( "(?P<uri>[^"]+)")*$')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user