]> xmof Git - DeDRM.git/commitdiff
Regression bug fixes
authorapprenticeharper <apprenticeharper@gmail.com>
Thu, 14 Jan 2016 17:15:43 +0000 (17:15 +0000)
committerapprenticeharper <apprenticeharper@gmail.com>
Thu, 14 Jan 2016 17:15:43 +0000 (17:15 +0000)
18 files changed:
DeDRM_Macintosh_Application/DeDRM.app/Contents/Info.plist
DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/__init__.py
DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptepub.py
DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/ineptpdf.py
DeDRM_Macintosh_Application/DeDRM.app/Contents/Resources/wineutils.py
DeDRM_Windows_Application/DeDRM_App/DeDRM_lib/DeDRM_App.pyw
DeDRM_Windows_Application/DeDRM_App/DeDRM_lib/lib/__init__.py
DeDRM_Windows_Application/DeDRM_App/DeDRM_lib/lib/ineptepub.py
DeDRM_Windows_Application/DeDRM_App/DeDRM_lib/lib/ineptpdf.py
DeDRM_Windows_Application/DeDRM_App/DeDRM_lib/lib/wineutils.py
DeDRM_calibre_plugin/DeDRM_plugin.zip
DeDRM_calibre_plugin/DeDRM_plugin/__init__.py
DeDRM_calibre_plugin/DeDRM_plugin/ineptepub.py
DeDRM_calibre_plugin/DeDRM_plugin/ineptpdf.py
DeDRM_calibre_plugin/DeDRM_plugin/wineutils.py
Obok_calibre_plugin/obok_plugin.zip
Obok_calibre_plugin/obok_plugin/__init__.py
Obok_calibre_plugin/obok_plugin/obok/obok.py

index c9919f8e1b502a8613f663dbad09369964b760a1..c36a4c0d3e703408936c8ecb0a1dee3906f8a55f 100644 (file)
@@ -24,7 +24,7 @@
        <key>CFBundleExecutable</key>
        <string>droplet</string>
        <key>CFBundleGetInfoString</key>
-       <string>DeDRM AppleScript 6.3.5 Written 2010–2016 by Apprentice Alf et al.</string>
+       <string>DeDRM AppleScript 6.3.6 Written 2010–2016 by Apprentice Alf et al.</string>
        <key>CFBundleIconFile</key>
        <string>DeDRM</string>
        <key>CFBundleIdentifier</key>
@@ -36,7 +36,7 @@
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
-       <string>6.3.5</string>
+       <string>6.3.6</string>
        <key>CFBundleSignature</key>
        <string>dplt</string>
        <key>LSRequiresCarbon</key>
index 3254222f9509b8b04b7244c6370dc9f25a9a7783..ceef266b9f5a665980c231ce55b3aca1c8ce7681 100644 (file)
@@ -47,6 +47,7 @@ __docformat__ = 'restructuredtext en'
 #   6.3.3 - Bug fix for Kindle for PC support
 #   6.3.4 - Fixes for Kindle for Android, Linux, and Kobo 3.17
 #   6.3.5 - Fixes for Linux, and Kobo 3.19 and more logging
+#   6.3.6 - Fixes for ADE ePub and PDF introduced in 6.3.5
 
 
 """
@@ -54,7 +55,7 @@ Decrypt DRMed ebooks.
 """
 
 PLUGIN_NAME = u"DeDRM"
-PLUGIN_VERSION_TUPLE = (6, 3, 5)
+PLUGIN_VERSION_TUPLE = (6, 3, 6)
 PLUGIN_VERSION = u".".join([unicode(str(x)) for x in PLUGIN_VERSION_TUPLE])
 # Include an html helpfile in the plugin's zipfile with the following name.
 RESOURCE_NAME = PLUGIN_NAME + '_Help.htm'
index 5987b8c8ef061985075d6b52a8ba430cae5fea00..5c135ad5658dd76a6573ebf33a4a61dcc7899476 100644 (file)
@@ -3,7 +3,7 @@
 
 from __future__ import with_statement
 
-# ineptepub.pyw, version 6.3
+# ineptepub.pyw, version 6.4
 # Copyright © 2009-2010 by i♥cabbages
 
 # Released under the terms of the GNU General Public Licence, version 3
@@ -40,13 +40,14 @@ from __future__ import with_statement
 #   6.1 - Work if TkInter is missing
 #   6.2 - Handle UTF-8 file names inside an ePub, fix by Jose Luis
 #   6.3 - Add additional check on DER file sanity
+#   6.4 - Remove erroneous check on DER file sanity
 
 """
 Decrypt Adobe Digital Editions encrypted ePub books.
 """
 
 __license__ = 'GPL v3'
-__version__ = "6.3"
+__version__ = "6.4"
 
 import sys
 import os
@@ -171,14 +172,9 @@ def _load_crypto_libcrypto():
         def __init__(self, der):
             buf = create_string_buffer(der)
             pp = c_char_pp(cast(buf, c_char_p))
-            rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der)) 
+            rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der))
             if rsa is None:
                 raise ADEPTError('Error parsing ADEPT user key DER')
-            # check if pointer is not NULL
-            try:
-                c = self._rsa.contents
-            except ValueError:   
-                raise ADEPTError('Error parsing ADEPT user key DER')
 
         def decrypt(self, from_):
             rsa = self._rsa
@@ -326,7 +322,6 @@ def _load_crypto_pycrypto():
             except ValueError:   
                 raise ADEPTError('Error parsing ADEPT user key DER')
 
-
         def bytesToNumber(self, bytes):
             total = 0L
             for byte in bytes:
index 3967647aa9e5dcb1a307822ffe8f4e9692667845..839297f36caf1954fba8467b27d343cc1efc5109 100644 (file)
@@ -3,7 +3,7 @@
 
 from __future__ import with_statement
 
-# ineptpdf.pyw, version 8.0.2
+# ineptpdf.pyw, version 8.0.3
 # Copyright © 2009-2010 by i♥cabbages
 
 # Released under the terms of the GNU General Public Licence, version 3
@@ -55,6 +55,7 @@ from __future__ import with_statement
 #   8.0  - Work if TkInter is missing
 #   8.0.1 - Broken Metadata fix.
 #   8.0.2 - Add additional check on DER file sanity
+#   8.0.3 - Remove erroneous check on DER file sanity
 
 
 """
@@ -62,7 +63,7 @@ Decrypts Adobe ADEPT-encrypted PDF files.
 """
 
 __license__ = 'GPL v3'
-__version__ = "8.0.2"
+__version__ = "8.0.3"
 
 import sys
 import os
@@ -201,11 +202,6 @@ def _load_crypto_libcrypto():
             rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der))
             if rsa is None:
                 raise ADEPTError('Error parsing ADEPT user key DER')
-            # check if pointer is not NULL
-            try:
-                c = self._rsa.contents
-            except ValueError:   
-                raise ADEPTError('Error parsing ADEPT user key DER')
 
         def decrypt(self, from_):
             rsa = self._rsa
index f2f8edc12a0dac45981fd535fccb23aadf4ef6d3..fff8016f2f701f5e391a9b68b956c3c9ce3aacb3 100644 (file)
@@ -41,15 +41,15 @@ def WineGetKeys(scriptpath, extension, wineprefix=""):
         print u"{0} v{1}: Wine subprocess call error: {2}".format(PLUGIN_NAME, PLUGIN_VERSION, e.args[0])
         if wineprefix != "" and os.path.exists(wineprefix):
             cmdline = u"WINEPREFIX=\"{2}\" wine C:\\Python27\\python.exe \"{0}\" \"{1}\"".format(scriptpath,outdirpath,wineprefix)
-       else:
+        else:
            cmdline = u"wine C:\\Python27\\python.exe \"{0}\" \"{1}\"".format(scriptpath,outdirpath)
-       print u"{0} v{1}: Command line: “{2}”".format(PLUGIN_NAME, PLUGIN_VERSION, cmdline)
+        print u"{0} v{1}: Command line: “{2}”".format(PLUGIN_NAME, PLUGIN_VERSION, cmdline)
 
-       try:
+        try:
            cmdline = cmdline.encode(sys.getfilesystemencoding())
            p2 = Process(cmdline, shell=True, bufsize=1, stdin=None, stdout=sys.stdout, stderr=STDOUT, close_fds=False)
            result = p2.wait("wait")
-       except Exception, e:
+        except Exception, e:
            print u"{0} v{1}: Wine subprocess call error: {2}".format(PLUGIN_NAME, PLUGIN_VERSION, e.args[0])
 
     # try finding winekeys anyway, even if above code errored
index 0aa55d33e902bb4d17082683e995636c851c124d..18d9af847be7a16fffe22cb8347cb6aea228f406 100644 (file)
@@ -20,8 +20,9 @@
 #   6.3.3 - Version bump to match plugin
 #   6.3.4 - Version bump to match plugin
 #   6.3.5 - Version bump to match plugin
+#   6.3.6 - Version bump to match plugin
 
-__version__ = '6.3.5'
+__version__ = '6.3.6'
 
 import sys
 import os, os.path
index 3254222f9509b8b04b7244c6370dc9f25a9a7783..ceef266b9f5a665980c231ce55b3aca1c8ce7681 100644 (file)
@@ -47,6 +47,7 @@ __docformat__ = 'restructuredtext en'
 #   6.3.3 - Bug fix for Kindle for PC support
 #   6.3.4 - Fixes for Kindle for Android, Linux, and Kobo 3.17
 #   6.3.5 - Fixes for Linux, and Kobo 3.19 and more logging
+#   6.3.6 - Fixes for ADE ePub and PDF introduced in 6.3.5
 
 
 """
@@ -54,7 +55,7 @@ Decrypt DRMed ebooks.
 """
 
 PLUGIN_NAME = u"DeDRM"
-PLUGIN_VERSION_TUPLE = (6, 3, 5)
+PLUGIN_VERSION_TUPLE = (6, 3, 6)
 PLUGIN_VERSION = u".".join([unicode(str(x)) for x in PLUGIN_VERSION_TUPLE])
 # Include an html helpfile in the plugin's zipfile with the following name.
 RESOURCE_NAME = PLUGIN_NAME + '_Help.htm'
index 5987b8c8ef061985075d6b52a8ba430cae5fea00..5c135ad5658dd76a6573ebf33a4a61dcc7899476 100644 (file)
@@ -3,7 +3,7 @@
 
 from __future__ import with_statement
 
-# ineptepub.pyw, version 6.3
+# ineptepub.pyw, version 6.4
 # Copyright © 2009-2010 by i♥cabbages
 
 # Released under the terms of the GNU General Public Licence, version 3
@@ -40,13 +40,14 @@ from __future__ import with_statement
 #   6.1 - Work if TkInter is missing
 #   6.2 - Handle UTF-8 file names inside an ePub, fix by Jose Luis
 #   6.3 - Add additional check on DER file sanity
+#   6.4 - Remove erroneous check on DER file sanity
 
 """
 Decrypt Adobe Digital Editions encrypted ePub books.
 """
 
 __license__ = 'GPL v3'
-__version__ = "6.3"
+__version__ = "6.4"
 
 import sys
 import os
@@ -171,14 +172,9 @@ def _load_crypto_libcrypto():
         def __init__(self, der):
             buf = create_string_buffer(der)
             pp = c_char_pp(cast(buf, c_char_p))
-            rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der)) 
+            rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der))
             if rsa is None:
                 raise ADEPTError('Error parsing ADEPT user key DER')
-            # check if pointer is not NULL
-            try:
-                c = self._rsa.contents
-            except ValueError:   
-                raise ADEPTError('Error parsing ADEPT user key DER')
 
         def decrypt(self, from_):
             rsa = self._rsa
@@ -326,7 +322,6 @@ def _load_crypto_pycrypto():
             except ValueError:   
                 raise ADEPTError('Error parsing ADEPT user key DER')
 
-
         def bytesToNumber(self, bytes):
             total = 0L
             for byte in bytes:
index 3967647aa9e5dcb1a307822ffe8f4e9692667845..839297f36caf1954fba8467b27d343cc1efc5109 100644 (file)
@@ -3,7 +3,7 @@
 
 from __future__ import with_statement
 
-# ineptpdf.pyw, version 8.0.2
+# ineptpdf.pyw, version 8.0.3
 # Copyright © 2009-2010 by i♥cabbages
 
 # Released under the terms of the GNU General Public Licence, version 3
@@ -55,6 +55,7 @@ from __future__ import with_statement
 #   8.0  - Work if TkInter is missing
 #   8.0.1 - Broken Metadata fix.
 #   8.0.2 - Add additional check on DER file sanity
+#   8.0.3 - Remove erroneous check on DER file sanity
 
 
 """
@@ -62,7 +63,7 @@ Decrypts Adobe ADEPT-encrypted PDF files.
 """
 
 __license__ = 'GPL v3'
-__version__ = "8.0.2"
+__version__ = "8.0.3"
 
 import sys
 import os
@@ -201,11 +202,6 @@ def _load_crypto_libcrypto():
             rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der))
             if rsa is None:
                 raise ADEPTError('Error parsing ADEPT user key DER')
-            # check if pointer is not NULL
-            try:
-                c = self._rsa.contents
-            except ValueError:   
-                raise ADEPTError('Error parsing ADEPT user key DER')
 
         def decrypt(self, from_):
             rsa = self._rsa
index f2f8edc12a0dac45981fd535fccb23aadf4ef6d3..fff8016f2f701f5e391a9b68b956c3c9ce3aacb3 100644 (file)
@@ -41,15 +41,15 @@ def WineGetKeys(scriptpath, extension, wineprefix=""):
         print u"{0} v{1}: Wine subprocess call error: {2}".format(PLUGIN_NAME, PLUGIN_VERSION, e.args[0])
         if wineprefix != "" and os.path.exists(wineprefix):
             cmdline = u"WINEPREFIX=\"{2}\" wine C:\\Python27\\python.exe \"{0}\" \"{1}\"".format(scriptpath,outdirpath,wineprefix)
-       else:
+        else:
            cmdline = u"wine C:\\Python27\\python.exe \"{0}\" \"{1}\"".format(scriptpath,outdirpath)
-       print u"{0} v{1}: Command line: “{2}”".format(PLUGIN_NAME, PLUGIN_VERSION, cmdline)
+        print u"{0} v{1}: Command line: “{2}”".format(PLUGIN_NAME, PLUGIN_VERSION, cmdline)
 
-       try:
+        try:
            cmdline = cmdline.encode(sys.getfilesystemencoding())
            p2 = Process(cmdline, shell=True, bufsize=1, stdin=None, stdout=sys.stdout, stderr=STDOUT, close_fds=False)
            result = p2.wait("wait")
-       except Exception, e:
+        except Exception, e:
            print u"{0} v{1}: Wine subprocess call error: {2}".format(PLUGIN_NAME, PLUGIN_VERSION, e.args[0])
 
     # try finding winekeys anyway, even if above code errored
index 05cfb8fececaf3a57d4484e4d5371b4309303eb3..8c0dceacec67f827399d6146157467f0e48a11ec 100644 (file)
Binary files a/DeDRM_calibre_plugin/DeDRM_plugin.zip and b/DeDRM_calibre_plugin/DeDRM_plugin.zip differ
index 3254222f9509b8b04b7244c6370dc9f25a9a7783..ceef266b9f5a665980c231ce55b3aca1c8ce7681 100644 (file)
@@ -47,6 +47,7 @@ __docformat__ = 'restructuredtext en'
 #   6.3.3 - Bug fix for Kindle for PC support
 #   6.3.4 - Fixes for Kindle for Android, Linux, and Kobo 3.17
 #   6.3.5 - Fixes for Linux, and Kobo 3.19 and more logging
+#   6.3.6 - Fixes for ADE ePub and PDF introduced in 6.3.5
 
 
 """
@@ -54,7 +55,7 @@ Decrypt DRMed ebooks.
 """
 
 PLUGIN_NAME = u"DeDRM"
-PLUGIN_VERSION_TUPLE = (6, 3, 5)
+PLUGIN_VERSION_TUPLE = (6, 3, 6)
 PLUGIN_VERSION = u".".join([unicode(str(x)) for x in PLUGIN_VERSION_TUPLE])
 # Include an html helpfile in the plugin's zipfile with the following name.
 RESOURCE_NAME = PLUGIN_NAME + '_Help.htm'
index 5987b8c8ef061985075d6b52a8ba430cae5fea00..5c135ad5658dd76a6573ebf33a4a61dcc7899476 100644 (file)
@@ -3,7 +3,7 @@
 
 from __future__ import with_statement
 
-# ineptepub.pyw, version 6.3
+# ineptepub.pyw, version 6.4
 # Copyright © 2009-2010 by i♥cabbages
 
 # Released under the terms of the GNU General Public Licence, version 3
@@ -40,13 +40,14 @@ from __future__ import with_statement
 #   6.1 - Work if TkInter is missing
 #   6.2 - Handle UTF-8 file names inside an ePub, fix by Jose Luis
 #   6.3 - Add additional check on DER file sanity
+#   6.4 - Remove erroneous check on DER file sanity
 
 """
 Decrypt Adobe Digital Editions encrypted ePub books.
 """
 
 __license__ = 'GPL v3'
-__version__ = "6.3"
+__version__ = "6.4"
 
 import sys
 import os
@@ -171,14 +172,9 @@ def _load_crypto_libcrypto():
         def __init__(self, der):
             buf = create_string_buffer(der)
             pp = c_char_pp(cast(buf, c_char_p))
-            rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der)) 
+            rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der))
             if rsa is None:
                 raise ADEPTError('Error parsing ADEPT user key DER')
-            # check if pointer is not NULL
-            try:
-                c = self._rsa.contents
-            except ValueError:   
-                raise ADEPTError('Error parsing ADEPT user key DER')
 
         def decrypt(self, from_):
             rsa = self._rsa
@@ -326,7 +322,6 @@ def _load_crypto_pycrypto():
             except ValueError:   
                 raise ADEPTError('Error parsing ADEPT user key DER')
 
-
         def bytesToNumber(self, bytes):
             total = 0L
             for byte in bytes:
index 3967647aa9e5dcb1a307822ffe8f4e9692667845..839297f36caf1954fba8467b27d343cc1efc5109 100644 (file)
@@ -3,7 +3,7 @@
 
 from __future__ import with_statement
 
-# ineptpdf.pyw, version 8.0.2
+# ineptpdf.pyw, version 8.0.3
 # Copyright © 2009-2010 by i♥cabbages
 
 # Released under the terms of the GNU General Public Licence, version 3
@@ -55,6 +55,7 @@ from __future__ import with_statement
 #   8.0  - Work if TkInter is missing
 #   8.0.1 - Broken Metadata fix.
 #   8.0.2 - Add additional check on DER file sanity
+#   8.0.3 - Remove erroneous check on DER file sanity
 
 
 """
@@ -62,7 +63,7 @@ Decrypts Adobe ADEPT-encrypted PDF files.
 """
 
 __license__ = 'GPL v3'
-__version__ = "8.0.2"
+__version__ = "8.0.3"
 
 import sys
 import os
@@ -201,11 +202,6 @@ def _load_crypto_libcrypto():
             rsa = self._rsa = d2i_RSAPrivateKey(None, pp, len(der))
             if rsa is None:
                 raise ADEPTError('Error parsing ADEPT user key DER')
-            # check if pointer is not NULL
-            try:
-                c = self._rsa.contents
-            except ValueError:   
-                raise ADEPTError('Error parsing ADEPT user key DER')
 
         def decrypt(self, from_):
             rsa = self._rsa
index f2f8edc12a0dac45981fd535fccb23aadf4ef6d3..fff8016f2f701f5e391a9b68b956c3c9ce3aacb3 100644 (file)
@@ -41,15 +41,15 @@ def WineGetKeys(scriptpath, extension, wineprefix=""):
         print u"{0} v{1}: Wine subprocess call error: {2}".format(PLUGIN_NAME, PLUGIN_VERSION, e.args[0])
         if wineprefix != "" and os.path.exists(wineprefix):
             cmdline = u"WINEPREFIX=\"{2}\" wine C:\\Python27\\python.exe \"{0}\" \"{1}\"".format(scriptpath,outdirpath,wineprefix)
-       else:
+        else:
            cmdline = u"wine C:\\Python27\\python.exe \"{0}\" \"{1}\"".format(scriptpath,outdirpath)
-       print u"{0} v{1}: Command line: “{2}”".format(PLUGIN_NAME, PLUGIN_VERSION, cmdline)
+        print u"{0} v{1}: Command line: “{2}”".format(PLUGIN_NAME, PLUGIN_VERSION, cmdline)
 
-       try:
+        try:
            cmdline = cmdline.encode(sys.getfilesystemencoding())
            p2 = Process(cmdline, shell=True, bufsize=1, stdin=None, stdout=sys.stdout, stderr=STDOUT, close_fds=False)
            result = p2.wait("wait")
-       except Exception, e:
+        except Exception, e:
            print u"{0} v{1}: Wine subprocess call error: {2}".format(PLUGIN_NAME, PLUGIN_VERSION, e.args[0])
 
     # try finding winekeys anyway, even if above code errored
index c42dfb4d5ab251631b08fc3b36e2da56f8d3a6b2..c8fe1f81f954a412ad7d1605950e1174ba75744d 100644 (file)
Binary files a/Obok_calibre_plugin/obok_plugin.zip and b/Obok_calibre_plugin/obok_plugin.zip differ
index 730d38a4a79497d159195adb6f1e3ee7cd3ea247..5a52b406b57c534a04fdeec6ebb641c7152a9a1f 100644 (file)
@@ -19,7 +19,7 @@ except NameError:
 PLUGIN_NAME = 'Obok DeDRM'
 PLUGIN_SAFE_NAME = PLUGIN_NAME.strip().lower().replace(' ', '_')
 PLUGIN_DESCRIPTION = _('Removes DRM from Kobo kepubs and adds them to the library.')
-PLUGIN_VERSION_TUPLE = (6, 3, 5)
+PLUGIN_VERSION_TUPLE = (6, 3, 6)
 PLUGIN_VERSION = '.'.join([str(x) for x in PLUGIN_VERSION_TUPLE])
 HELPFILE_NAME = PLUGIN_SAFE_NAME + '_Help.htm'
 PLUGIN_AUTHORS = 'Anon'
index 26d1e38a1f0ab4c6a172e7b567c82deeac323530..9720dcfadea15d945e4d9ddcd75019f75980a09e 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
-# Version 6.3.5 January 2016
+# Version 3.2.0 January 2016
 # Update for latest version of Windows Desktop app.
 # Support Kobo devices in the command line version.
 #