dimme / tapo-cli

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

Downloaded videos are invalid data. #1

Closed thepuar closed 1 year ago

thepuar commented 1 year 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 1 year ago

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

dimme commented 1 year 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 1 year 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 1 year ago

Do as you wish =)

igoriok commented 1 year 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 1 year ago

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