浏览代码

Slightly more debugging

Zachary Kotlarek 13 年之前
父节点
当前提交
2ac0d8aee1
共有 1 个文件被更改,包括 9 次插入 和 1 次删除
  1. 9 1
      plexMonitor/plexMonitor.pl

+ 9 - 1
plexMonitor/plexMonitor.pl

@@ -91,7 +91,15 @@ exit(0);
 
 sub xbmcHTTP($) {
 	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 ($DEBUG) {
 			print STDERR "No data returned from HTTP call\n";