Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FeatureRequest: Google Drive support #143

Open
seaspeak opened this issue Jul 31, 2023 · 21 comments
Open

FeatureRequest: Google Drive support #143

seaspeak opened this issue Jul 31, 2023 · 21 comments

Comments

@seaspeak
Copy link

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

@aceflor
Copy link

aceflor commented Sep 21, 2023

Same here

@Dirk71
Copy link

Dirk71 commented Oct 6, 2023

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

@heylookltsme
Copy link

+1

Thanks for nickelmenu! It rules!

@xdepoorter
Copy link

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

@Becks-S
Copy link

Becks-S commented Apr 12, 2024

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

@avichou
Copy link

avichou commented Apr 14, 2024

i'd love that

@pgaskin
Copy link
Owner

pgaskin commented Apr 15, 2024

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

@kingo132
Copy link

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

@imax9000
Copy link

imax9000 commented Aug 2, 2024

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

@imax9000
Copy link

imax9000 commented Aug 2, 2024

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.

@kingo132
Copy link

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
Copy link

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.

@ryanplusplus
Copy link

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

@kingo132
Copy link

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!

@imax9000
Copy link

Also see this pgaskin/kobopatch-patches#139 if you're using kobopatch

@ryanplusplus
Copy link

Thank you so much for providing this information!

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

@heylookltsme
Copy link

This is awesome, thanks for sharing!

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

@Krabbis07
Copy link

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!

Hi, new to github and dealing with code, so was wondering if you could provide some clarification about how you enabled google drive?

I managed successfully with Dropbox and did the same steps with the information you provided for Google Drive i.e. edited the Kobo eReader.conf and added menu item to the nickelmenu. However, when I try to open it on my Kobo I get the following popup "unknown view 'godrive' (in 'library:godrive') (check failed: sym_f)

The only missing piece I can think of is what was mentioned earlier as "a symbol" _ZN14MoreController11googleDriveEv
which I think is related to your modified code in the action_cc.cc file screenshot. Is this something I need to edit too/something that was included in your modified KoboRoot file and not in the original?

Will I need to uninstall my nickelmenu and install your modified version instead, or can I edit it on my end? (I however can't find a file in my kobo's folders called action_cc.cc to edit!)

Any guidance is appreciated! 🙏🏼

@brianpipa
Copy link

@Krabbis07 sounds like you didn't install the modified Nickelmenu - look at the last comment by kingo132 - he has a link to a KoboRoot.zip - install that Nickelmenu update then it will work. I did it the other day on my Kobo mini running Kobo Glo firmware (4.38) and it worked beautifully

@Dirk71
Copy link

Dirk71 commented Oct 2, 2024

The above mentioned KoboRoot.zip for the updated NickleMenu doesn't work. I have installed it and still the "godrive" isn't known by NickleMenu - I get a failure message.....unknown view 'godrive' (in libary:godrive')

My firmware: 4.38.23038 on Kobo Libra 2

@niceguysean
Copy link

I have tried and failed miserably to install this on my partners Kobo Clara Color. Followed the instructions above, Unzip and installed KoboRoot.zip and put it into .kobo folder, and modified the .kobo/Kobo/Kobo eReader.conf, but Nickelmenu does not show up when I reboot the device.
Kobo Clara Color 4.40.23081
Any help gratefully recieved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

15 participants