I have recently started getting a Traceback when downloading video files from my 2 cameras.
I am using the command : /opt/tapo-cli/tapo-cli.py download-videos --days 10 --path /Data/Tapo --overwrite 0
Which produces the below :
raceback (most recent call last):
File "/opt/tapo-cli/tapo-cli.py", line 366, in
tapo()
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1157, in call
return self.main(args, kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 783, in invoke
return __callback(args, **kwargs)
File "/opt/tapo-cli/tapo-cli.py", line 326, in download_videos
print('\nFound ' + str(videos['total']) + ' videos for ' + dev['alias'] + ':')
KeyError: 'total'
Pretty sure it's related to the high number of videos the cameras have been producing lately due to a lot of motion detection in the zones. Using 7 days works now and reports about 1500 videos to download combined from the 2 cameras.
Thanks. There are known problems with the app which I do not have to fix. If you fix it you are welcome to do a pull request. I will update this issue when I find time and fix the problems.
Hello,
I have recently started getting a Traceback when downloading video files from my 2 cameras.
I am using the command : /opt/tapo-cli/tapo-cli.py download-videos --days 10 --path /Data/Tapo --overwrite 0
Which produces the below :
raceback (most recent call last): File "/opt/tapo-cli/tapo-cli.py", line 366, in
tapo()
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1157, in call
return self.main(args, kwargs)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/local/lib/python3.9/dist-packages/click/core.py", line 783, in invoke
return __callback(args, **kwargs)
File "/opt/tapo-cli/tapo-cli.py", line 326, in download_videos
print('\nFound ' + str(videos['total']) + ' videos for ' + dev['alias'] + ':')
KeyError: 'total'
Pretty sure it's related to the high number of videos the cameras have been producing lately due to a lot of motion detection in the zones. Using 7 days works now and reports about 1500 videos to download combined from the 2 cameras.