NickelMenu icon indicating copy to clipboard operation
NickelMenu copied to clipboard

FeatureRequest: Google Drive support

Open seaspeak opened this issue 2 years ago • 55 comments

Recently Kobo new firmware officially supports Google Drive (software version 4.37 or higher). Hope to add the feature as for Dropbox.

https://help.kobo.com/hc/en-us/articles/15335985512983-Add-books-to-your-eReader-using-Google-Drive

seaspeak avatar Jul 31 '23 22:07 seaspeak

Same here

aceflor avatar Sep 21 '23 07:09 aceflor

Yes, I also would appreciate Google Drive support, same as it is now for Dropbox.

Dirk71 avatar Oct 06 '23 20:10 Dirk71

+1

Thanks for nickelmenu! It rules!

heylookltsme avatar Nov 07 '23 14:11 heylookltsme

Yes, I also would appreciate Google Drive support, same as it is now for Dropbox.

xdepoorter avatar Jan 28 '24 13:01 xdepoorter

+1 Hugely appreciate NickelMenu and Google Drive support would be the cherry on top! Thank you! :)

Becks-S avatar Apr 12 '24 09:04 Becks-S

i'd love that

avichou avatar Apr 14 '24 01:04 avichou

I really gotta get the release pipeline migrated to GH Actions so I can get this stuff implemented and do another release...

pgaskin avatar Apr 15 '24 20:04 pgaskin

How to launch Google Drive using nickle menu, it's already there in the system

kingo132 avatar Jul 17 '24 05:07 kingo132

There's a symbol _ZN14MoreController11googleDriveEv which may have the same functionality as _ZN14MoreController7dropboxEv, but for Google Drive.

imax9000 avatar Aug 02 '24 21:08 imax9000

Can confirm that Google Drive integration works perfectly well on Libra 2, but I had to patch hardcoded device model checks in libnickel.so for the menu item to show up.

imax9000 avatar Aug 02 '24 22:08 imax9000

There's a symbol _ZN14MoreController11googleDriveEv which may have the same functionality as _ZN14MoreController7dropboxEv, but for Google Drive.

I added this symbol to the code, and the Google setup page appeared. However, we need the URL of googledrive_link_account_start to link the Google Drive account. Since Dropbox used the URL like https://authorize.kobo.com/{region}/{language}/LinkDropbox. So I tried a lot of combos like LinkGoogleDrive, LinkGoogle, LinkDrive, etc. None of them works. We need help with what this link URL is.

kingo132 avatar Aug 10 '24 01:08 kingo132

One example of the Dropbox URL is https://authorize.kobo.com/us/en/LinkDropbox. When you try this on the computer, it will show an error, but the URL remains the same and won't be redirected. QQ_1723261513487 However, if you enter a URL like this: https://authorize.kobo.com/us/en/LinkGoogleDrive. It will not just show this error but redirect it to an error URL: https://authorize.kobo.com/Error/. This could indicate the wrong URL component: "LinkGoogleDrive", which means the guess of this URL path is wrong. According to Kobo's help page, some devices originally supported Google Drive. QQ_1723261769531 Therefore, if someone who owns these devices can share the URL of googledrive_link_account_start inside the "Kobo eReader.conf" file, that would be great.

kingo132 avatar Aug 10 '24 03:08 kingo132

Therefore, if someone who owns these devices can share the URL of googledrive_link_account_start inside the "Kobo eReader.conf" file, that would be great.

googledrive_link_account_start=https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive

ryanplusplus avatar Aug 10 '24 11:08 ryanplusplus

Therefore, if someone who owns these devices can share the URL of googledrive_link_account_start inside the "Kobo eReader.conf" file, that would be great.

googledrive_link_account_start=https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive

Thank you so much! I succeeded in adding the Google Drive functionality to my Kobo Clara Colour! QQ_1723305276363 Here is my modified version of NickelMenu; you can use it before the author releases the newest version. KoboRoot.zip Unzip it and put it into .kobo folder, and as you know, modify the .kobo/Kobo/Kobo eReader.conf

googledrive_link_account_start=https://authorize.kobo.com/{region}/{language}/linkcloudstorage/provider/google_drive
kobo_googledrive_link_account_enabled=True

Then add this to your NickelMenu

menu_item :main    :godrive            :nickel_open        :library   :godrive

All the code I modified is in the action_cc.cc file QQ_1723305577617

Thank you so much for providing this information!

kingo132 avatar Aug 10 '24 16:08 kingo132

Also see this https://github.com/pgaskin/kobopatch-patches/pull/139 if you're using kobopatch

imax9000 avatar Aug 10 '24 17:08 imax9000

Thank you so much for providing this information!

No problem, I'm glad I could help! Thanks for making that build!

ryanplusplus avatar Aug 10 '24 17:08 ryanplusplus

This is awesome, thanks for sharing!

@kingo132 Could you open a pull request for your updates? 🙏🏻

heylookltsme avatar Aug 11 '24 21:08 heylookltsme