dimme / tapo-cli

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

Downloaded videos are invalid data. #1

Closed thepuar closed 9 months ago

thepuar commented 11 months ago

Hii, everything was working properly until last days. I can download videos but can't open. I think TAPO changed format or something. Someone have the same problem? image

igoriok commented 10 months ago

They added encryption: 'encryptionMethod': 'AES-128-CTR', 'decryptionInfo': {'key': '<BASE64>', 'iv': '<BASE64>'}

dimme commented 10 months ago

I will take a closer look at it when I have some time. In the meantime, you are welcome to do a pull request if you have a solution.

thepuar commented 10 months ago

Sadly I have no idea about python, but I can create a Java version(when I have time) and reference your proyect as creator if you are agree. ;)

dimme commented 10 months ago

Do as you wish =)

igoriok commented 10 months ago

Made in Go: https://github.com/igoriok/tapo-cli

download-old - is using old endpoint and encryption (if needed) Usage: download-old --token <TOKEN> --device <DEVICE-ID> --since 1 --days 1

download - is using new endpoint and ffmpeg (required) Usage: download --token <TOKEN> --device <DEVICE-ID> --since 1 --days 1

I'll add authentication when I have more time.

dimme commented 9 months ago

This has been fixed now. Thanks for the heads up.