Update __init__.py
This commit is contained in:
parent
7619ee4e0f
commit
18d6413467
|
@ -63,6 +63,8 @@ __docformat__ = 'restructuredtext en'
|
||||||
# 6.5.3 - Warn about KFX files explicitly
|
# 6.5.3 - Warn about KFX files explicitly
|
||||||
# 6.5.4 - Mac App Fix, improve PDF decryption, handle latest tcl changes in ActivePython
|
# 6.5.4 - Mac App Fix, improve PDF decryption, handle latest tcl changes in ActivePython
|
||||||
# 6.5.5 - Finally a fix for the Windows non-ASCII user names.
|
# 6.5.5 - Finally a fix for the Windows non-ASCII user names.
|
||||||
|
# 6.x.x - Add kfx and kfx-zip as supported file types (also invoke this plugin if the original
|
||||||
|
# imported format was azw8 since that may be converted to kfx)
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -118,7 +120,7 @@ class DeDRM(FileTypePlugin):
|
||||||
author = u"Apprentice Alf, Aprentice Harper, The Dark Reverser and i♥cabbages"
|
author = u"Apprentice Alf, Aprentice Harper, The Dark Reverser and i♥cabbages"
|
||||||
version = PLUGIN_VERSION_TUPLE
|
version = PLUGIN_VERSION_TUPLE
|
||||||
minimum_calibre_version = (1, 0, 0) # Compiled python libraries cannot be imported in earlier versions.
|
minimum_calibre_version = (1, 0, 0) # Compiled python libraries cannot be imported in earlier versions.
|
||||||
file_types = set(['epub','pdf','pdb','prc','mobi','pobi','azw','azw1','azw3','azw4','tpz'])
|
file_types = set(['epub','pdf','pdb','prc','mobi','pobi','azw','azw1','azw3','azw4','azw8','tpz','kfx','kfx-zip'])
|
||||||
on_import = True
|
on_import = True
|
||||||
priority = 600
|
priority = 600
|
||||||
|
|
||||||
|
@ -613,7 +615,7 @@ class DeDRM(FileTypePlugin):
|
||||||
self.starttime = time.time()
|
self.starttime = time.time()
|
||||||
|
|
||||||
booktype = os.path.splitext(path_to_ebook)[1].lower()[1:]
|
booktype = os.path.splitext(path_to_ebook)[1].lower()[1:]
|
||||||
if booktype in ['prc','mobi','pobi','azw','azw1','azw3','azw4','tpz']:
|
if booktype in ['prc','mobi','pobi','azw','azw1','azw3','azw4','tpz','kfx-zip']:
|
||||||
# Kindle/Mobipocket
|
# Kindle/Mobipocket
|
||||||
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
|
decrypted_ebook = self.KindleMobiDecrypt(path_to_ebook)
|
||||||
elif booktype == 'pdb':
|
elif booktype == 'pdb':
|
||||||
|
|
Loading…
Reference in New Issue