]> xmof Git - DeDRM.git/commitdiff
Update kfxdedrm as suggested in #440
authorNoDRM <no_drm123@protonmail.com>
Thu, 21 Dec 2023 11:35:11 +0000 (12:35 +0100)
committerNoDRM <no_drm123@protonmail.com>
Thu, 21 Dec 2023 11:35:11 +0000 (12:35 +0100)
DeDRM_plugin/kfxdedrm.py

index cec764c2098ff3268b390cac3b1b85b7494072d1..419653e6abc4b31768826f009d344a6b86e24969 100644 (file)
@@ -74,7 +74,7 @@ class KFXZipBook:
             # Belt and braces. PIDs should be unicode strings, but just in case...
             if isinstance(pid, bytes):
                 pid = pid.decode('ascii')
-            for dsn_len,secret_len in [(0,0), (16,0), (16,40), (32,40), (40,0), (40,40)]:
+            for dsn_len,secret_len in [(0,0), (16,0), (16,40), (32,0), (32,40), (40,0), (40,40)]:
                 if len(pid) == dsn_len + secret_len:
                     break       # split pid into DSN and account secret
             else: