From ae883cd0a418475bafe98a8499cbe7b0bf5c22fe Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Sat, 19 Oct 2019 03:59:50 +0200 Subject: [PATCH] fix action reply --- kodi/kodi.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/kodi/kodi.cpp b/kodi/kodi.cpp index ba1497c8..b2ffec84 100644 --- a/kodi/kodi.cpp +++ b/kodi/kodi.cpp @@ -953,11 +953,6 @@ void Kodi::processResponse(int id, const QString &method, const QVariantMap &res return; } - if (method == "GUI.ShowNotification" || method == "Input.ExecuteAction") { - emit actionExecuted(id, !response.contains("error")); - return; - } - if (method == "VideoLibrary.Scan" || method == "VideoLibrary.Clean" || method == "AudioLibrary.Scan" || method == "AudioLibrary.Clean") { emit browserItemActionExecuted(id, !response.contains("error")); return; @@ -965,9 +960,11 @@ void Kodi::processResponse(int id, const QString &method, const QVariantMap &res if (method == "Player.Open") { emit browserItemExecuted(id, !response.contains("error")); + return; } - qCWarning(dcKodi()) << "unhandled reply" << method << response; + // Default + emit actionExecuted(id, !response.contains("error")); } void Kodi::updatePlayerProperties()