WIP - Fixing the download of books#13
Open
jmvermeulen wants to merge 4 commits into
Open
Conversation
|
+1 on functionality. Works for me |
|
This repository has been abandoned. I have forked the project at https://github.com/subdavis/kobo-book-downloader - please give that project a try and open an issue there if you have trouble. @jmvermeulen I'd like to make sure my fork works with this social DRM type. Could you either give it a try to maybe link me to a cheap book that you know uses this type? I ran into the exact same issue as you: URL isn't identified by call to GetContentAccessBook(), but I fixed it by simply _always_calling GetMyBookList(). This was needed to get audiobooks as well, so 2 birds one stone. My fork adds some new features:
Please don't reply to this issue, open an issue on my fork instead |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've fixed the
GetAllBooksdownloads, but I cannot get the DRM decryption to work again.Kobo made some small response changes in their API that I corrected.
In the process I found another DRM type called SocialDrm. In this case the e-book can be used on all my devices, but its 'watermarked'. For me this is not a issue (and even preferred), I don't want to use the tool for piracy but only to have the e-books in a DRM-free format.
This SocialDrm download url is not supplied when the client identifies its-self as Android client as seen in
Kobo.__GetContentAccessBook().Only in the book listing call as in
Globals.Kobo.GetMyBookList(). This response containsDownloadUrlsof much more DRM types.Due inconsistencies in the Kobo API response types its hard (for me in Python) to create a generic method that handles both scenario's.
Maybe someone can help me out here?
In my view, when available, a book 'protected' by SocialDrm should have the first choice. If not available other DRM types could be downloaded and decrypted. Im not able to get this last part done.