]> xmof Git - DeDRM.git/commitdiff
Hopefully fix Kindle books
authorNoDRM <no_drm123@protonmail.com>
Sun, 20 Mar 2022 07:09:00 +0000 (08:09 +0100)
committerNoDRM <no_drm123@protonmail.com>
Sun, 20 Mar 2022 07:09:00 +0000 (08:09 +0100)
DeDRM_plugin/__init__.py

index 3521018e8e5bea28da9a4d327fd86550b6335d4d..ad2e38f1939dc07a1175ce11701d5c172563bf39 100644 (file)
@@ -975,7 +975,7 @@ class DeDRM(FileTypePlugin):
             if len(newkeys) > 0:
                 print("{0} v{1}: Found {2} new {3}".format(PLUGIN_NAME, PLUGIN_VERSION, len(newkeys), "key" if len(newkeys)==1 else "keys"))
                 try:
-                    book = k4mobidedrm.GetDecryptedBook(path_to_ebook,list(newkeys.items()),[],[],[],self.starttime)
+                    book = k4mobidedrm.GetDecryptedBook(path_to_ebook,list(newkeys),[],[],[],self.starttime)
                     decoded = True
                     # store the new successful keys in the defaults
                     print("{0} v{1}: Saving {2} new {3}".format(PLUGIN_NAME, PLUGIN_VERSION, len(newkeys), "key" if len(newkeys)==1 else "keys"))