subdavis / kobo-book-downloader

A tool to download and remove DRM from your purchased Kobo.com ebooks and audiobooks.
https://pypi.org/project/kobodl/
The Unlicense
331 stars 31 forks source link

KoboDL not adding users #101

Closed chrisdma closed 1 year ago

chrisdma commented 1 year ago

Describe the issue kobodl, both python and windows binaries, are not adding my user to the user list

To Reproduce Steps to reproduce the behavior:

  1. Download kobodl for windows
  2. Run kobodl user add
  3. enter email
  4. enter password
  5. Copy captcha code and hit enter at waiting prompt
  6. kobodl gets stuck at the add prompt and only shows the captcha code

Expected behavior Expect the program to add the user account

Screenshots NVIDIA_Share_qj8Js8qf53

Desktop (please complete the following information):

Additional context

subdavis commented 1 year ago

Are you using a kobo account or some other identity provider?

NOTE: You must have a kobo email login for this tool to work (you can't use an external provider like Google or Facebook). However, you can create a NEW kobo account and link it with your existing account on the user profile page. Go to My Account -> Account Settings to link your new kobo login.

chrisdma commented 1 year ago

Are you using a kobo account or some other identity provider?

NOTE: You must have a kobo email login for this tool to work (you can't use an external provider like Google or Facebook). However, you can create a NEW kobo account and link it with your existing account on the user profile page. Go to My Account -> Account Settings to link your new kobo login.

I am, its a Rakuten account as seen below: NVIDIA_Share_hHi2cSIqp4

When I click Link Kobo Account and provide new account details, it says "Cannot link two accounts of the same provider, Rakuten" so it should be the correct type?

chrisdma commented 1 year ago

Any idea on how to fix the login issue?

subdavis commented 1 year ago

I appreciate the detailed bug report. This has happened for various people over the years, and its usually because of what I said above. Sounds like that isn't the issue for you. I have never been able to reproduce myself.

I don't really know off the top of my head what you can try, aside from using the Calibre plugins I mention at the top of the README as an alternative to kobodl.

chrisdma commented 1 year ago

I appreciate the detailed bug report. This has happened for various people over the years, and its usually because of what I said above. Sounds like that isn't the issue for you. I have never been able to reproduce myself.

I don't really know off the top of my head what you can try, aside from using the Calibre plugins I mention at the top of the README as an alternative to kobodl.

That didn't work either; Obok is showing the book as DRM-free which is why I wanted to try this. Thanks anyways.

chrisdma commented 1 year ago

@subdavis What about a way for me to manually get the access token/cookie from an active login session and pass it to the app/script?

chrisdma commented 1 year ago

Would you actually be able to give me a sample json config file? I managed to get a login working from kobo-book-downloader (even though I couldn't get the downloader working) that has the AccessToken, DeviceId, RefreshToken, UserId, and UserKey properties. Can I make this usable with kobodl?

subdavis commented 1 year ago

Resourceful. You can specify the path using kobodl --config /path/to/config.json [args]


{
  "users": [{
    "Email": "",
    "DeviceId": "",
    "AccessToken": "",
    "RefreshToken": "",
    "UserId": "",
    "UserKey": "",
  }]
}
chrisdma commented 1 year ago

This worked, awesome! Thank you mate!

mslmn commented 1 year ago

When I try specifying the json path it still hangs after pasting the captcha response. Any help? I'm on an M1 mac.

chrisdma commented 1 year ago

When I try specifying the json path it still hangs after pasting the captcha response. Any help? I'm on an M1 mac.

Do what I did and use kobo-book-downloader to generate your json authorization and use those values to build a json for this project and itll work.

mslmn commented 1 year ago

How do I do this?

chrisdma commented 1 year ago

By downloading kobo-book-downloader and using it to get the config thats generated; basically what I said in my last message lol

mslmn commented 1 year ago

How do I get the generated config? Where is it located?