mpd: Fix review comments for commands blacklist
This commit is contained in:
parent
e4ba4b3e5f
commit
52814715b4
@ -85,7 +85,7 @@ v0.20.0 (UNRELEASED)
|
||||
:issue:`934`, PR: :issue:`968`)
|
||||
|
||||
- Add support for blacklisting MPD commands. This is used to prevent clients
|
||||
from using `listall` and `listallinfo` which recursively lookup the entire
|
||||
from using ``listall`` and ``listallinfo`` which recursively lookup the entire
|
||||
"database". If you insist on using a client that needs these commands change
|
||||
:confval:`mpd/command_blacklist`.
|
||||
|
||||
|
||||
@ -103,6 +103,6 @@ See :ref:`config` for general help on configuring Mopidy.
|
||||
.. confval:: mpd/command_blacklist
|
||||
|
||||
List of MPD commands which are disabled by the server. By default this
|
||||
setting blacklists `listall` and `listallinfo`. These commands don't fit
|
||||
well with many of Mopidy's backends and are better left disabled unless
|
||||
setting blacklists ``listall`` and ``listallinfo``. These commands don't
|
||||
fit well with many of Mopidy's backends and are better left disabled unless
|
||||
you know what you are doing.
|
||||
|
||||
@ -90,6 +90,7 @@ class MpdNotImplemented(MpdAckError):
|
||||
|
||||
|
||||
class MpdDisabled(MpdAckError):
|
||||
# NOTE: this is a custom error for mopidy that does not exists in MPD.
|
||||
error_code = 0
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
@ -5,7 +5,6 @@ import warnings
|
||||
|
||||
|
||||
def _is_pykka_proxy_creation():
|
||||
return False
|
||||
stack = inspect.stack()
|
||||
try:
|
||||
calling_frame = stack[3]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user