xbmc checker fix (3)

Former-commit-id: c8b406033d333177dd2470522b2d8526a9c02d07
This commit is contained in:
brindosch 2016-05-26 07:45:54 +02:00
parent 84d9f4ef80
commit 716935dfff
1 changed files with 6 additions and 1 deletions

View File

@ -61,7 +61,7 @@ void XBMCVideoChecker::receiveReply()
std::cout << "KODICHECK INFO: Kodi Message: " << reply.toStdString() << std::endl;
if (reply.contains("\"method\":\"Player.OnPlay\"") || reply.contains("\"method\":\"Playlist.OnAdd\""))
if (reply.contains("\"method\":\"Player.OnPlay\""))
{
// send a request for the current player state
_socket.write(_activePlayerRequest.toUtf8());
@ -193,6 +193,11 @@ void XBMCVideoChecker::receiveReply()
_xbmcVersion = regex.cap(1).toInt();
}
}
else if (reply.contains("picture") && reply.contains("\"method\":\"Playlist.OnAdd\""))
{
// picture viewer is playing
setGrabbingMode(_grabPhoto ? GRABBINGMODE_PHOTO : GRABBINGMODE_OFF);
}
}
void XBMCVideoChecker::connected()