|
@ -198,8 +198,11 @@ class DVRIPCam(object): |
|
|
|
|
|
|
|
|
self.packet_count += 1 |
|
|
self.packet_count += 1 |
|
|
self.logger.debug("<= %s", data) |
|
|
self.logger.debug("<= %s", data) |
|
|
reply = json.loads(data[:-2]) |
|
|
try: |
|
|
return reply |
|
|
reply = json.loads(data[:-2]) |
|
|
|
|
|
return reply |
|
|
|
|
|
except: |
|
|
|
|
|
return data |
|
|
|
|
|
|
|
|
def send_custom( |
|
|
def send_custom( |
|
|
self, msg, data={}, wait_response=True, download=False, version=0 |
|
|
self, msg, data={}, wait_response=True, download=False, version=0 |
|
|