Supress mopdiy errors due to missing replaygain and crossfade support

This commit is contained in:
Craig Drummond
2017-01-10 23:13:42 +00:00
committed by Craig Drummond
parent 123e84bbd2
commit 8bf4f28360

View File

@@ -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) {