mirror of
				https://github.com/hyperion-project/hyperion.ng.git
				synced 2025-03-01 10:33:28 +00:00 
			
		
		
		
	xbmc checker fix (3)
Former-commit-id: c8b406033d333177dd2470522b2d8526a9c02d07
This commit is contained in:
		| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user