Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback - KeyError: 'total' #7

Open
lxsol opened this issue May 19, 2024 · 1 comment
Open

Traceback - KeyError: 'total' #7

lxsol opened this issue May 19, 2024 · 1 comment

Comments

@lxsol
Copy link

lxsol commented May 19, 2024

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.

@dimme
Copy link
Owner

dimme commented May 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants