Parcourir la source

Allow playerid = 0

Zachary Kotlarek il y a 12 ans
Parent
commit
c5a6757545
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      plexMonitor/plexMonitor.pl

+ 1 - 1
plexMonitor/plexMonitor.pl

@@ -84,7 +84,7 @@ do {
 	}
 
 	# Get details about the player
-	if ($data{'playerid'}) {
+	if ($data{'playerid'} >= 0) {
 		$result = xbmcJSON('Player.GetProperties', { 'playerid' => $data{'playerid'}, 'properties' => [ 'time', 'type', 'speed' ] });
 		if (defined($result)) {
 			if (exists($result->{'time'})) {