v0.0.12: Fix Calibre plugin index

This commit is contained in:
Florian Bach 2021-11-15 06:46:48 +01:00
parent c8f1081e44
commit 1f61d972f5
2 changed files with 8 additions and 6 deletions

View File

@ -18,14 +18,14 @@
# v0.0.11: Ignore SSL errors during ACS notify, improve element hashing code,
# improve PassHash support, include UUID in key export filename,
# fix bug that would block other FileTypePlugins
from calibre.customize import FileTypePlugin # type: ignore
__version__ = '0.0.11'
# v0.0.12: Fix Calibre Plugin index / updater
PLUGIN_NAME = "DeACSM"
PLUGIN_VERSION_TUPLE = tuple([int(x) for x in __version__.split(".")])
PLUGIN_VERSION = ".".join([str(x)for x in PLUGIN_VERSION_TUPLE])
PLUGIN_VERSION_TUPLE = (0, 0, 12)
from calibre.customize import FileTypePlugin # type: ignore
__version__ = PLUGIN_VERSION = ".".join([str(x)for x in PLUGIN_VERSION_TUPLE])
from calibre.utils.config import config_dir # type: ignore

View File

@ -218,6 +218,8 @@ def signIn(username: str, passwd: str):
err = credentialsXML.get("data")
if ("E_AUTH_FAILED" in err and "CUS05051" in err):
return False, "Invalid username or password!"
elif ("E_AUTH_FAILED" in err and "LOGIN_FAILED" in err):
return False, "E_AUTH_FAILED/LOGIN_FAILED. If you have 2FA enabled, please disable that and try again."
else:
return False, "Unknown Adobe error:" + credentials