Skip to content

Commit

Permalink
Prepare v0.0.15
Browse files Browse the repository at this point in the history
  • Loading branch information
Leseratte10 committed Dec 15, 2021
1 parent 21644b2 commit 1fa8e28
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions calibre-plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
# fix authorization failing with certain non-ASCII characters in username,
# add detailed logging toggle setting, add auto-delete ACSM setting,
# add useful error message for ACSMs with nonstandard download type.
# Currently in development:
# Add support for anonymous authorizations, add support for other ID providers,
# v0.0.15: Add support for anonymous authorizations, add support for other ID providers,
# fix ACSM files from Google Play books (no metadata node),
# allow converting an anonymous auth to an AdobeID auth.
# allow converting an anonymous auth to an AdobeID auth,
# update python-cryptography from 3.4.8 to 36.0.1, update python-rsa from 4.7.2 to 4.8.

PLUGIN_NAME = "DeACSM"
PLUGIN_VERSION_TUPLE = (0, 0, 14)
PLUGIN_VERSION_TUPLE = (0, 0, 15)

from calibre.customize import FileTypePlugin # type: ignore
__version__ = PLUGIN_VERSION = ".".join([str(x)for x in PLUGIN_VERSION_TUPLE])
Expand Down
5 changes: 5 additions & 0 deletions calibre-plugin/libadobeAccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ def buildSignInRequestForAnonAuthConvert(username: str, password: str, authentic
except:
return None

# Note: I tried replacing the user_uuid with the UUID of another (anonymous) authorization
# to see if it was possible to take over another account, but that didn't work. That's the reason
# why this request has the signature node, the payload needs to be signed with the user certificate
# that matches the UUID in the <adept:user> tag.

etree.SubElement(root, etree.QName(NSMAP["adept"], "user")).text = user_uuid
signature = sign_node(root)
etree.SubElement(root, etree.QName(NSMAP["adept"], "signature")).text = signature
Expand Down

0 comments on commit 1fa8e28

Please sign in to comment.