node-red-contrib-hik-media-buffer 1.1.46 → 1.1.47
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 +1 -1
- package/package.json +1 -1
package/hik-media-buffer.js
CHANGED
|
@@ -164,7 +164,7 @@ module.exports = function(RED) {
|
|
|
164
164
|
try {
|
|
165
165
|
for (let t of tracks) {
|
|
166
166
|
// RIPRISTINATO: Il tuo XML originale esatto con <trackIDList> e ${evento} dinamico
|
|
167
|
-
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>//recordType.meta.std-cgi.com/${evento}</metadataDescriptor></metadataList></CMSearchDescription>`;
|
|
167
|
+
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>//recordType.meta.std-cgi.com/${evento.toLowerCase()}</metadataDescriptor></metadataList></CMSearchDescription>`;
|
|
168
168
|
|
|
169
169
|
const resSearch = await camAuth.request({
|
|
170
170
|
method: 'POST', url: `${baseUrl}/search`, data: searchXml, headers: { "Content-Type": "application/xml" }
|