]> xmof Git - DeDRM.git/commitdiff
Fix IndexError in mobidedrm.py
authorNoDRM <no_drm123@protonmail.com>
Tue, 4 Jan 2022 15:56:02 +0000 (16:56 +0100)
committerNoDRM <no_drm123@protonmail.com>
Tue, 4 Jan 2022 15:56:02 +0000 (16:56 +0100)
CHANGELOG.md
DeDRM_plugin/mobidedrm.py

index 7bca4f48587a6e0282c61098437c259e42e820e8..e4d9c1cad5903fcee8efc7695c8117cbb39e75fd 100644 (file)
@@ -55,4 +55,6 @@ List of changes since the fork of Apprentice Harper's repository:
 - ineptpdf: Disable cross-reference streams in the output file. This may make PDFs slightly larger, but the current code for cross-reference streams seems to be buggy and sometimes creates corrupted PDFs.
 - Drop support for importing key data from the ancient, pre "DeDRM" Calibre plugins ("Ignoble Epub DeDRM", "eReader PDB 2 PML" and "K4MobiDeDRM"). These are from 2011, I doubt anyone still has these installed, I can't even find a working link for these to test them. If you still have encryption keys in one of these plugins, you will need to update to DeDRM v10.0.2 or older (to convert the keys) before updating to DeDRM v10.0.3 or newer.
 - Some Python3 bugfixes for Amazon books (merged #10 by ableeker).
-- Fix a bug where extracting an Adobe key from ADE on Linux through Wine did fail when using the OpenSSL backend (instead of PyCrypto). See #13 and #14 for details, thanks acaloiaro for the bugfix.
\ No newline at end of file
+- Fix a bug where extracting an Adobe key from ADE on Linux through Wine did fail when using the OpenSSL backend (instead of PyCrypto). See #13 and #14 for details, thanks acaloiaro for the bugfix.
+- Make the plugin work on Calibre 6 (Qt 6). If you're running the Calibre 6 beta and you notice any issues, please open a bug report.
+- Fix IndexError when DeDRMing some Amazon eBooks.
index ec03fdb8fbb6a1724b74b18f5388bb2c4e4e6aaf..843eebe5db18d70ca5d42cc1a090c545c53b5a09 100755 (executable)
@@ -461,7 +461,7 @@ class MobiBook:
             data406 = self.meta_array[406]
             val406, = struct.unpack('>Q',data406)
             if val406 != 0:
-                print("Warning: This is a library or rented ebook ({1}). Continuing ...".format(val406))
+                print("Warning: This is a library or rented ebook ({0}). Continuing ...".format(val406))
                 #raise DrmException("Cannot decode library or rented ebooks.")
 
         goodpids = []