mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
xbmc checker fix (3)
Former-commit-id: c8b406033d333177dd2470522b2d8526a9c02d07
This commit is contained in:
parent
84d9f4ef80
commit
716935dfff
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user