From c8b7961bd08b810ab888ff1b7707b094926f9d76 Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Thu, 29 Feb 2024 17:24:06 +0000 Subject: [PATCH] fixup! www/ajax/discoverCameras.php: rework postAdd() to use getRtspUrls.js and fall back to onvif_tool change path to share --- www/ajax/discoverCameras.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/ajax/discoverCameras.php b/www/ajax/discoverCameras.php index 89542c5d..eb53ff07 100644 --- a/www/ajax/discoverCameras.php +++ b/www/ajax/discoverCameras.php @@ -316,7 +316,7 @@ public function postAdd() $onvif_password = $password; try { - $json_out = shell_exec("node /usr/lib/bluecherry/getRtspUrls.js {$escaleshellarg($onvif_addr)} {$escaleshellarg($onvif_username)} {$escaleshellarg($onvif_password)}"); + $json_out = shell_exec("node /usr/share/bluecherry/onvif/getRtspUrls.js {$escaleshellarg($onvif_addr)} {$escaleshellarg($onvif_username)} {$escaleshellarg($onvif_password)}"); if ($json_out) { $urls = json_decode($json_out); $main_stream = urls[0].rtspUri;