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
344 stars 32 forks source link

[Critical bug] kobodl gets stuck during authentication and fetching books #76

Closed steed12 closed 2 years ago

steed12 commented 2 years ago

Discussed in https://github.com/subdavis/kobo-book-downloader/discussions/75

Originally posted by **steed12** February 17, 2022 Hi, I installed, configured and used kobodl last week. From yesterdady i am trying to download my entire library again but the script still after the "kobodl book get --get-all". Also with the command for the list, no answer. With "kobodl user list" i can get my account. So i tried to remove my account and to re add it. All seem to go straight until i enter the captcha code: no answer. What can be the problem? Thank you for the answer and the work.
Nosgoroth commented 2 years ago

Same here. I've just tracked it down to the call to https://storeapi.kobo.com/v1/initialization in kobo.LoadInitializationSettings() but I can't tell why.

leavion commented 2 years ago

Same here. It worked until couple of days ago. Is it possible that Kobo is blocking access?

subdavis commented 2 years ago

Status update

Workaround

Meanwhile, you can also see https://github.com/subdavis/kobo-book-downloader#alternatives-to-kobodl for a way to get your books using a calibre plugin

steed12 commented 2 years ago

news? Thank you

subdavis commented 2 years ago

Unlikely that this will work again. I tend to drop maintenance on software that I don't use anymore, and I've moved entirely to Calibre + the two plugins listed at the top of the readme.

I do kinda want to fix this just because I don't want to let Kobo.com win, but more than likely I'm just not going to get around to it. If anyone with reverse engineering skills can fix the authorization flow, I'll happily accept a PR.

I recommend switching to https://github.com/Leseratte10/acsm-calibre-plugin and/or DeDRM tools for all your Kobo needs.

It was fun while it lasted.

Nosgoroth commented 2 years ago

I tried to mitmproxy the Kobo app in an Android emulator, but I'm hardly an expert in this and the cert pinning got me.

I don't use Calibre for library management, so this code is much more useful for me than the suggested alternate flow. I might bash my head against this one more time at some point, but I can't promise any results.

steed12 commented 2 years ago

@subdavis ok, thank you for your support. The main problem is that I can't download my ebook from Kobo plus from the site, so calibre and its plugins are useless. I hope someone can fix your project.

steed12 commented 2 years ago

@Nosgoroth tell me if you need help.

TnS-hun commented 2 years ago

See this commit for how to support hCaptcha.

Nosgoroth commented 2 years ago

See this commit for how to support hCaptcha.

Thank you so much! I got it working.

@subdavis I'll try to figure out how to make a PR (never made one)

subdavis commented 2 years ago

0.9.0 released to pypi, thanks everyone.