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