Skip to content

Commit

Permalink
DeDRM plugin 6.0.6
Browse files Browse the repository at this point in the history
(Only the plugin seems to have been updated for the 6.0.6 release.)
  • Loading branch information
apprenticealf committed Mar 7, 2015
1 parent a399d3b commit 5a502db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Binary file modified DeDRM_calibre_plugin/DeDRM_plugin.zip
Binary file not shown.
9 changes: 5 additions & 4 deletions DeDRM_calibre_plugin/DeDRM_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
# 6.0.3 - Fixes for Kindle for Mac and Windows non-ascii user names
# 6.0.4 - Fixes for stand-alone scripts and applications
# and pdb files in plugin and initial conversion of prefs.
# 6.0.6 - Fix up an incorrect function call

"""
Decrypt DRMed ebooks.
"""

PLUGIN_NAME = u"DeDRM"
PLUGIN_VERSION_TUPLE = (6, 0, 5)
PLUGIN_VERSION_TUPLE = (6, 0, 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'
Expand Down Expand Up @@ -216,7 +217,7 @@ def ePubDecrypt(self,path_to_ebook):
else: # linux
from wineutils import WineGetKeys

scriptpath = os.join(self.alfdir,u"adobekey.py")
scriptpath = os.path.join(self.alfdir,u"adobekey.py")
defaultkeys = WineGetKeys(scriptpath, u".der",dedrmprefs['adobewineprefix'])

self.default_key = default_keys[0]
Expand Down Expand Up @@ -311,7 +312,7 @@ def PDFDecrypt(self,path_to_ebook):
try:
from wineutils import WineGetKeys

scriptpath = os.join(self.alfdir,u"adobekey.py")
scriptpath = os.path.join(self.alfdir,u"adobekey.py")
defaultkeys = self.WineGetKeys(scriptpath, u".der",dedrmprefs['adobewineprefix'])
except:
pass
Expand Down Expand Up @@ -389,7 +390,7 @@ def KindleMobiDecrypt(self,path_to_ebook):
else: # linux
from wineutils import WineGetKeys

scriptpath = os.join(self.alfdir,u"kindlekey.py")
scriptpath = os.path.join(self.alfdir,u"kindlekey.py")
defaultkeys = self.WineGetKeys(scriptpath, u".k4i",dedrmprefs['kindlewineprefix'])
except:
pass
Expand Down

0 comments on commit 5a502db

Please sign in to comment.