]> xmof Git - DeDRM.git/commitdiff
Fix file lock issue in androidkindlekey.py
authorNoDRM <no_drm123@protonmail.com>
Sun, 3 Dec 2023 09:42:41 +0000 (10:42 +0100)
committerNoDRM <no_drm123@protonmail.com>
Sun, 3 Dec 2023 09:42:41 +0000 (10:42 +0100)
CHANGELOG.md
DeDRM_plugin/androidkindlekey.py

index c10dc1965e0a5e922fcb900513b89a8a8228e3dd..bf8b806280f46fafa9b8d5cbc7862955ca43b5c7 100644 (file)
@@ -103,3 +103,5 @@ This is v10.0.9, a release candidate for v10.1.0. I don't expect there to be maj
 - Fix a bug where decrypting a 256-bit AES pdf with V=5 didn't work.
 - Fix bugs in kgenpids.py, alfcrypto.py, mobidedrm.py and kindlekey.py that caused it to fail on Python 2 (#380).
 - Fix some bugs (Python 2 and Python 3) in erdr2pml.py (untested).
+- Fix file lock bug in androidkindlekey.py on Windows with Calibre >= 7 (untested).
+
index 74208e06ff68914d4cc33bd4fb9bf9f8ed6772f5..27124bda0d43f439e6c2b13bac4c59ad90fa983b 100755 (executable)
@@ -201,6 +201,9 @@ def get_serials2(path=STORAGE2):
         for y in tokens:
             serials.append(y)
             serials.append(x+y)
+
+    connection.close()
+
     return serials
 
 def get_serials(path=STORAGE):