Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 14bc4ed

Browse files
authored
Merge pull request #22 from fwestenberg/fwestenberg-patch-1
Add suffix to subscribe URL and password length fix
2 parents a3bbf87 + 1de65d8 commit 14bc4ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

reolink/subscription_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Manager:
2323
def __init__(self, host, port, username, password, timeout=DEFAULT_TIMEOUT):
2424
self._host = host
2525
self._username = username
26-
self._password = password
26+
self._password = password[:31]
2727
self._timeout = aiohttp.ClientTimeout(total=timeout)
28-
self._subscribe_url = f"http://{host}:{port}"
28+
self._subscribe_url = f"http://{host}:{port}/onvif/event_service"
2929
self._manager_url = None
3030
self._termination_time = None
3131
self._time_difference = None

0 commit comments

Comments
 (0)