whitespace cleanup
parent
38f3649a47
commit
578d12d2c5
|
@ -874,8 +874,7 @@ class Camera(Device):
|
||||||
'status': [],
|
'status': [],
|
||||||
'motion': []
|
'motion': []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def get_list_of_events(self, start_timestamp=None, end_timestamp=None):
|
def get_list_of_events(self, start_timestamp=None, end_timestamp=None):
|
||||||
"""
|
"""
|
||||||
Obtains the list of events.
|
Obtains the list of events.
|
||||||
|
@ -948,7 +947,6 @@ class Camera(Device):
|
||||||
"data": response_json
|
"data": response_json
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def get_live_preview(self):
|
def get_live_preview(self):
|
||||||
|
|
||||||
url = f"https://{self.user_base_url}/api/v3.0/media/liveImage.jpeg?deviceId={self.id}&type=preview"
|
url = f"https://{self.user_base_url}/api/v3.0/media/liveImage.jpeg?deviceId={self.id}&type=preview"
|
||||||
|
@ -972,16 +970,6 @@ class Camera(Device):
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def get_list_of_videos(self, start_timestamp=None, end_timestamp=None, stream_type='main', media_type='video', coalesce='true', include=['mp4Url']):
|
def get_list_of_videos(self, start_timestamp=None, end_timestamp=None, stream_type='main', media_type='video', coalesce='true', include=['mp4Url']):
|
||||||
"""
|
"""
|
||||||
Obtains the list of videos.
|
Obtains the list of videos.
|
||||||
|
@ -1065,3 +1053,16 @@ class Camera(Device):
|
||||||
"data": self.videos
|
"data": self.videos
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue