revert
All checks were successful
Build Docker image / docker (push) Successful in 1m47s

This commit is contained in:
Lee
2024-03-02 16:39:33 +00:00
parent a63149d37a
commit c7486d6628
2 changed files with 25 additions and 15 deletions

View File

@ -108,6 +108,7 @@ class Reolink(UnifiCamBase):
self.logger.info("Trigger motion end")
await self.trigger_motion_stop()
else:
# pass
self.logger.error(
"Motion API request responded with "
"unexpected JSON, retrying. "
@ -143,7 +144,6 @@ class Reolink(UnifiCamBase):
stream = self.args.substream
return (
f"rtmp://{self.args.ip}/bcs/channel{self.args.channel}_{stream}.bcs"
f"?channel={self.args.channel}&stream=0&user={self.args.username}"
f"&password={self.args.password}"
f"rtsp://{self.args.username}:{self.args.password}@{self.args.ip}:554"
f"//h264Preview_{int(self.args.channel) + 1:02}_{stream}"
)