View Single Post
Old 01-14-2014, 04:40 PM   #126
spMatti
Member
spMatti is a marvel to beholdspMatti is a marvel to beholdspMatti is a marvel to beholdspMatti is a marvel to beholdspMatti is a marvel to beholdspMatti is a marvel to beholdspMatti is a marvel to beholdspMatti is a marvel to beholdspMatti is a marvel to beholdspMatti is a marvel to beholdspMatti is a marvel to behold
 
Posts: 20
Karma: 11978
Join Date: Feb 2013
Location: Finland
Device: Kobo Touch
Quote:
Originally Posted by kobotux View Post
Being able to download/update book on kobo from Google drive would be nice. For example, using a script to check NEW books on Google drive and download the missing ones would be great. Is this something that I can achieve through your wget process ?
Yes, I tested it today. You can download files from Google Drive with wget if you create a public folder for the files that you want to update to kobo. All public folders have a hosting URL that anyone can access. You can find out hosting URL by opening details pane for the directory. Test the link by opening it with browser. You should see simple file list.

Now all files from the folder can be downloaded to kobo. This command will download all files that are new or have changed:
Code:
wget -m -nd --no-parent --no-check-certificate https://www.googledrive.com/host/FOLDER_ID/
It downloads some extra files like robots.txt and index.html, but you can exclude them with some wget options.
spMatti is offline   Reply With Quote