From 5bf531cfd5aa6812dd96bb3aa887187f71f3f560 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 25 May 2019 10:17:51 -0400 Subject: fix object detect filter --- www/js/NVR.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'www/js/NVR.js') diff --git a/www/js/NVR.js b/www/js/NVR.js index 53d7a350..1b5b9da8 100644 --- a/www/js/NVR.js +++ b/www/js/NVR.js @@ -458,7 +458,7 @@ angular.module('zmApp.controllers') return d.promise; } debug("API based login returned. "); - //console.log (JSON.stringify(succ)); + console.log (JSON.stringify(succ)); setCurrentServerVersion(succ.version); $ionicLoading.hide(); //$rootScope.loggedIntoZm = 1; @@ -503,6 +503,7 @@ angular.module('zmApp.controllers') loginData.loginAPISupported = true; setLogin(loginData); + log("Stream authentication construction: " + $rootScope.authSession); @@ -3138,7 +3139,7 @@ angular.module('zmApp.controllers') //https:///zm/api/events/index/Notes%20REGEXP:detected%3A.json if (loginData.objectDetectionFilter && !noObjectFilter) { - myurl = myurl + '/Notes%20REGEXP:detected%3A'; + myurl = myurl + '/Notes REGEXP:detected:'; } @@ -3228,7 +3229,7 @@ angular.module('zmApp.controllers') // don't know why but adding page messes up Notes //https:///zm/api/events/index/Notes%20REGEXP: detected%3A.json if (loginData.objectDetectionFilter && !noObjectFilter) { - myurl = myurl + '/Notes REGEXP:"detected:"'; + myurl = myurl + '/Notes REGEXP:detected:'; } myurl = myurl + ".json?&sort=StartTime&direction=desc&page=" + pageId + $rootScope.authSession; -- cgit v1.2.3