fsantini / KoboCloud

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

Dropbox private folder method not working #164

Open Glennza1962 opened 9 months ago

Glennza1962 commented 9 months ago

I click the link and authorise Kobocloud. It IS added to the list of apps which can "view Dropbox content" but it does not create any folders. The Kobo Cloud Sync entry shows...

"Permissions | This app no longer has access to your files because you deleted its app folder. You will need to reinstall the app for it to work again."

There is no "Application" or "Apps" folder in my Dropbox. I have tried adding one manually but that didn't work.

I tried removing Kobo Cloud Sync from the installed apps list and re-adding it but still get the same thing. I'm not sure which "app" it is that needs to be reinstalled?

Glennza1962 commented 9 months ago

Update:

I created a second Dropbox account and used the "Private Folders" link. Still doesn't work!

However, after looking in the resolved issues, I found and clicked a different link. This one seems to work!

So, Doesn't work... https://www.dropbox.com/oauth2/authorize?response_type=code&token_access_type=offline&client_id=5oyw72cfwcp352f&code_challenge_method=plain&code_challenge=0000000000000000000000000000000000000000000&redirect_uri=https://louisabraham.github.io/KoboCloud/

Works... https://www.dropbox.com/oauth2/authorize?client_id=5oyw72cfwcp352f&response_type=token&redirect_uri=https://louisabraham.github.io/KoboCloud

Glennza1962 commented 9 months ago

Would it be possible to get some clarification about the instructions?

Open this link (all good so far)
Paste the command in a terminal (where is this "terminal"?)
Copy the line starting with DropboxApp: from your terminal (see below)
Add it to your kobocloudrc file (all good)

DropboxApp:5oyw72cfwcp352f:\1\n\n/' DropboxApp:5oyw72cfwcp352f:\1\n\n/ DropboxApp:5oyw72cfwcp352f:\1\

Which - if any - of these is correct?

Thanks! :)

Glennza1962 commented 9 months ago

Tried variations but get the same result from each

NickelDBus found Reading DropboxApp:5oyw72cfwcp352f:1nn/ Getting DropboxApp:5oyw72cfwcp352f:1nn/ Reading DropboxApp:5oyw72cfwcp352f:1nn/' Getting DropboxApp:5oyw72cfwcp352f:1nn/' Reading DropboxApp:5oyw72cfwcp352f:1DropboxApp:5oyw72cfwcp352f:1nn Getting DropboxApp:5oyw72cfwcp352f:1DropboxApp:5oyw72cfwcp352f:1nn Reading DropboxApp:5oyw72cfwcp352f:1nDropboxApp:5oyw72cfwcp352f:1 Getting DropboxApp:5oyw72cfwcp352f:1nDropboxApp:5oyw72cfwcp352f:1

comicfanindigo commented 8 months ago

I originally did this in the summer of 2020 using a shared public Dropbox folder and it worked wonderfully for quite a long time. Now that it stopped working I checked and see you need a private folder. I tried to add the new line replacing the previous dropbox folder and after that didn't work I uninstalled it and started from scratch and it still doesn't work. I used: DropboxApp:5oyw72cfwcp352f:\1\n\n/'

Is there a step I'm missing?

Also can you have more than one cloud account connected at the same time?

berliozz commented 8 months ago

@Glennza1962 — that working for me: DropboxApp:5oyw72cfwcp352f:pA9JyZq3aPQAAAAAAAAAAYB6aRW4bzhcttPPvgqS_2DaAjcAQ83vGDDBr2dfEi2E Pay attention that line breaker, like /n/n must be removed from string. The script contain next string: Add this line to your kobocloudrc file:\n\nDropboxApp:5oyw72cfwcp352f:\1\n\n/' This part is constant for everyone DropboxApp:5oyw72cfwcp352f: After it will adding additional keys, but this key will have \n\n, that mean you need to copy only constant and \1 variable. I hope it help you.

Glennza1962 commented 8 months ago

I am attempting to generate a set of instructions for book readers rather than computer programmers :)

Okay, here's what I have worked out so far...

Go to https://curl.se/ Install curl for your operating system (in my case Windows)

Click the link.. https://www.dropbox.com/oauth2/authorize?response_type=code&token_access_type=offline&client_id=5oyw72cfwcp352f&code_challenge_method=plain&code_challenge=0000000000000000000000000000000000000000000&redirect_uri=https://louisabraham.github.io/KoboCloud/

Allow access

Copy the text starting with "curl" and ending before the "| sed" and paste into a command line terminal. Click enter (Please note that the "click to copy" function will copy everything and will generate an error).

Open the kobocloudrc file on your Kobo Paste the generic line "DropboxApp:5oyw72cfwcp352f:" (without inverted commas) Go back to the command line terminal and cut the text between "refresh_token": and "scope" (without inverted commas) Paste it directly after the previous generic line.

It should look like the line berliozz showed above... (example) DropboxApp:5oyw72cfwcp352f:pA9JyZq3aPQAAAAAAAAAAYB6aRW4bzhcttPPvgqS_2DaAjcAQ83vGDDBr2dfEi2E

Finally Dropbox is working for me again (even though the epubs have no covers)

Thanks to berliozz for pointing me in the right direction.

Please update the main instructions because the current ones are not adequate for normal users (book readers).

Before I close this, please confirm that I have gotten this right. Thanks

comicfanindigo commented 8 months ago

Thank you both @berliozz @Glennza1962 I have some tech skills but I definitely fall more in the book readers camp for sure. When I get a chance I will try this out and see how it works.