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
GetAllBooks
downloads, 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 containsDownloadUrls
of 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.