Fix file lock issue in androidkindlekey.py

This commit is contained in:
NoDRM 2023-12-03 10:42:41 +01:00
parent ef67dbd204
commit e4e5808894
2 changed files with 5 additions and 0 deletions

View 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 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 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 some bugs (Python 2 and Python 3) in erdr2pml.py (untested).
- Fix file lock bug in androidkindlekey.py on Windows with Calibre >= 7 (untested).

View File

@ -201,6 +201,9 @@ def get_serials2(path=STORAGE2):
for y in tokens: for y in tokens:
serials.append(y) serials.append(y)
serials.append(x+y) serials.append(x+y)
connection.close()
return serials return serials
def get_serials(path=STORAGE): def get_serials(path=STORAGE):