fsantini / KoboCloud

A set of scripts to synchronize a kobo reader with popular cloud services
Other
966 stars 94 forks source link

Google Drive throttling corrupts existing files #126

Closed tpet93 closed 1 year ago

tpet93 commented 2 years ago

When accessing too many files using Google Drive, a temporary forbidden response is returned. image

This HTML page is currently written to the existing .epub regardless of status code, causing it to to become unreadable by the e-reader.

I found it necessary to skip files if they exist, to not trigger the throttling after the first ~30 books.

I've posted a potential workaround in d8946c998ffc27baa665ef0960b2c72a4ed146ff

It may need some further edits to not interfere with other cloud providers (I've only tested with Gdrive)

EDIT: the above solution may have some issues with ever growing files / false-success status, needs work.

groentebroer commented 1 year ago

@tpet93 Please also see the note in the readme, for large folders. Could it help to seperate the files across multiple share folders?