node-red-contrib-hik-media-buffer 1.1.60 → 1.1.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hik-media-buffer.js +3 -5
- package/package.json +1 -1
package/hik-media-buffer.js
CHANGED
|
@@ -176,11 +176,9 @@ module.exports = function(RED) {
|
|
|
176
176
|
for (let t of tracks) {
|
|
177
177
|
node.warn(`[warn] [hik-media-buffer:test] [STEP 4] Elaborazione traccia ${t.label} (ID: ${t.id})`);
|
|
178
178
|
|
|
179
|
-
// SVEGLIA:
|
|
180
|
-
//
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
const searchXml = `<?xml version="1.0" encoding="utf-8"?><CMSearchDescription><searchID>LAST_EVENT</searchID><trackIDList><trackID>${t.id}</trackID></trackIDList><timeSpanList><timeSpan><startTime>${startTime}</startTime><endTime>${endTime}</endTime></timeSpan></timeSpanList><maxResults>100</maxResults><metadataList><metadataDescriptor>${descriptorTarget}</metadataDescriptor></metadataList></CMSearchDescription>`;
|
|
179
|
+
// SVEGLIA: Eliminiamo completamente il blocco <metadataList> che conteneva lo slash maledetto (Tag 12)
|
|
180
|
+
// L'NVR cercherà i file basandosi solo sulla traccia (201 video o 203 foto) e l'orario, senza incartarsi sul parser!
|
|
181
|
+
const searchXml = `<?xml version="1.0" encoding="utf-8"?><CMSearchDescription><searchID>LAST_EVENT</searchID><trackIDList><trackID>${t.id}</trackID></trackIDList><timeSpanList><timeSpan><startTime>${startTime}</startTime><endTime>${endTime}</endTime></timeSpan></timeSpanList><maxResults>100</maxResults></CMSearchDescription>`;
|
|
184
182
|
|
|
185
183
|
node.warn(`[warn] [hik-media-buffer:test] [STEP 4.1] Invio POST /search per traccia ${t.id}. XML inviato:\n${searchXml}`);
|
|
186
184
|
|