dimme / tapo-cli

Command-line utility for batch-downloading your videos from the Tapo TP-Link Cloud.
22 stars 2 forks source link

Return downloaded videos result in `download_videos` command #5

Closed akomelj closed 4 months ago

akomelj commented 5 months ago

I am using Tapo CLI for periodically pulling videos from my Tapo cloud account and uploading the videos to local ZoneMinder installation where I keep the central repo of all security cam footage.

I modified the download_videos command to return the list of all (potentially) downloaded videos so that the command can be called from other Python modules (using download_videos.callback(days, path, overwrite) Click hack) and, consequently, videos processed directly without having to resort to filesystem scanning, storing "uploaded yes/no" flags, etc. The command returns the list of processed videos w/ the following attributes:

P.S. Thank you very much for sharing this great CLI tool! :100: