Make installation of rclone more robust
I had problems with the installation of rclone. Sometimes the download failed (probably because of a weak Wifi), and then it still tried to unzip the partially downloaded file, resulting in a zero-length rclone binary. The next time the Kobo retried it it concluded that rclone was present.
So I changed the code to do a length check on the binary, and also to remove it when the downloading fails.
Also changed the version to 1.66.
Don't do a library refresh if no files were transferred, otherwise the Kobo resets to the Home page instead of keeping the current book open.
move check for REMOVE_DELETED out of the loop, just a bit more efficient
Some other minor tweaks.
I am very content with the result. But I am working now on making this a menu item with NickelMenu. I think this way you have a bit more control.
I made the following changes:
Make installation of rclone more robust I had problems with the installation of
rclone
. Sometimes the download failed (probably because of a weak Wifi), and then it still tried to unzip the partially downloaded file, resulting in a zero-lengthrclone
binary. The next time the Kobo retried it it concluded thatrclone
was present. So I changed the code to do a length check on the binary, and also to remove it when the downloading fails. Also changed the version to 1.66.Don't do a library refresh if no files were transferred, otherwise the Kobo resets to the Home page instead of keeping the current book open.
move check for REMOVE_DELETED out of the loop, just a bit more efficient
Some other minor tweaks.
I am very content with the result. But I am working now on making this a menu item with NickelMenu. I think this way you have a bit more control.