Supress mopdiy errors due to missing replaygain and crossfade support
This commit is contained in:
committed by
Craig Drummond
parent
123e84bbd2
commit
8bf4f28360
@@ -693,8 +693,7 @@ MPDConnection::Response MPDConnection::sendCommand(const QByteArray &command, bo
|
||||
bool emitError=true;
|
||||
// Mopidy returns "incorrect arguments" for commands it does not support. The docs state that crossfade and replaygain mode
|
||||
// setting commands are not supported. So, if we get this error then just ignore it.
|
||||
if ((command.startsWith("crossfade ") || command.startsWith("replay_gain_mode ")) &&
|
||||
"incorrect arguments"==response.getError(command)) {
|
||||
if (mopidy && (command.startsWith("crossfade ") || command.startsWith("replay_gain_mode "))) {
|
||||
emitError=false;
|
||||
}
|
||||
if (emitError) {
|
||||
|
||||
Reference in New Issue
Block a user