fsantini / KoboCloud

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

Google drive does not work with curl's "-C -" parameter #112

Closed mswitakowski closed 2 years ago

mswitakowski commented 2 years ago

When curl is invoked for files that already exist on the Kobo the following error is returned:

{ [5 bytes data]

Removing the "-C -" parameter addresses the problem, but then existing files are always re-downloaded, which is slow and not scalable.

The error will stop the whole sync process from continuing. It seems that the synchronization generally works, because the newest files are returned first on the list. Otherwise, downloading new files would never start if an attempt to sync an existing file fails earlier. It stops the loop iterating over the files. Maybe a different approach is going to be needed for google drive. For example, files could be checked for existence before invoking curl.

fsantini commented 2 years ago

Hi, thanks. Yes I can confirm that it's a problem. Working on it.

rlyons20 commented 2 years ago

i'm having this problem

rlyons20 commented 2 years ago

it seems to not like certain files, in particular...