Zachary Kotlarek 13 лет назад
Родитель
Сommit
2ac0d8aee1
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      plexMonitor/plexMonitor.pl

+ 9 - 1
plexMonitor/plexMonitor.pl

@@ -91,7 +91,15 @@ exit(0);
 
 
 sub xbmcHTTP($) {
 sub xbmcHTTP($) {
 	my ($cmd) = @_;
 	my ($cmd) = @_;
-	my $data = get('http://localhost:3000/xbmcCmds/xbmcHttp?command=' . $cmd);
+
+	# Build the command
+	my $url = 'http://localhost:3000/xbmcCmds/xbmcHttp?command=' . $cmd;
+	if ($DEBUG) {
+		print STDERR 'Command: ' . $cmd . "\n\t" . $url . "\n";
+	}
+
+	# Send the request
+	my $data = get($url);
 	if (!defined($data)) {
 	if (!defined($data)) {
 		if ($DEBUG) {
 		if ($DEBUG) {
 			print STDERR "No data returned from HTTP call\n";
 			print STDERR "No data returned from HTTP call\n";