dnigamer / TeraboxUploaderCLI

Python CLI tool to make uploads to your Terabox cloud from any Linux or Windows environment without having to use the website.
MIT License
14 stars 6 forks source link

main.py: Don't continue upload looping if the login session has expired. #5

Closed TerraTech closed 7 months ago

TerraTech commented 7 months ago

This fixes a problem I had when I was uploading 50 1GB files, and on the 8th one the session had expired. I didn't see this condition (distracted) until it was on the 35th file. During that time, the loop had racked up a lot of time from performing the (unused) MD5 calculations.

In summation, it should stop the loop immediately when there is a "need verify" condition.

dnigamer commented 7 months ago

Well I haven't got around to test the split upload functionality to that extent mainly because i can upload files quick enough while the session is still valid 😅 Additionally, I probably wouldn't use the sys.exit() just like that because I want things to be a little more verbose and not have the program to "crash" on a session expired exception.