@scrypted/amcrest
Advanced tools
Comparing version
{ | ||
"name": "@scrypted/amcrest", | ||
"version": "0.0.100", | ||
"version": "0.0.101", | ||
"description": "Amcrest Plugin for Scrypted", | ||
@@ -5,0 +5,0 @@ "author": "Scrypted", |
@@ -42,4 +42,17 @@ import { listenZero } from "@scrypted/common/src/listen-cluster"; | ||
this.updateDeviceInfo(); | ||
this.updateManagementUrl(); | ||
} | ||
updateManagementUrl() { | ||
const ip = this.storage.getItem('ip'); | ||
if (!ip) | ||
return; | ||
const info = this.info || {}; | ||
const managementUrl = `http://${ip}`; | ||
if (info.managementUrl !== managementUrl) { | ||
info.managementUrl = managementUrl; | ||
this.info = info; | ||
} | ||
} | ||
getRecordingStreamThumbnail(time: number): Promise<MediaObject> { | ||
@@ -416,2 +429,4 @@ throw new Error("Method not implemented."); | ||
provider.updateDevice(this.nativeId, this.name, interfaces, type); | ||
this.updateManagementUrl(); | ||
} | ||
@@ -418,0 +433,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
318531
1.06%1064
1.62%