ageof / MyDlink-API-Python

MyDlink Cloud Python API
GNU General Public License v3.0
26 stars 5 forks source link

IndexError when downloading videos #4

Closed lucwuyts closed 3 years ago

lucwuyts commented 3 years ago

Hi, i've tried your example for downloading the video's, but i get this output and error message

Request 1 von 33 Request 1 von 33 Request 1 von 33 Request 1 von 33 Request 1 von 33 Request 1 von 33 Request 1 von 33 Request 1 von 33 Request 1 von 33 Traceback (most recent call last): File "test.py", line 18, in mydlink.get_mydlink_cloud_recordings(year=2021, month=5, day=3) File "C:\Users\luc.A-D-E\AppData\Local\Programs\Python\Python38-32\lib\site-packages\mydlink_api\mydlink.py", line 98, in get_mydlink_cloud_recordings self.get_mydlink_cloud_recordings_file(all_events_details_json) File "C:\Users\luc.A-D-E\AppData\Local\Programs\Python\Python38-32\lib\site-packages\mydlink_api\mydlink.py", line 130, in get_mydlink_cloud_recordings_file json_object['subs_uid'] = data['act'][0]['subs_uid'] IndexError: list index out of range