parent
45a1a64db5
commit
73af5d355d
|
@ -5,7 +5,7 @@
|
||||||
# Copyright © 2008-2020 Apprentice Harper et al.
|
# Copyright © 2008-2020 Apprentice Harper et al.
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__version__ = '7.2.0'
|
__version__ = '7.2.1'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,6 +76,7 @@ __docformat__ = 'restructuredtext en'
|
||||||
# 7.0.3 - More Python 3 changes. Integer division in ineptpdf.py
|
# 7.0.3 - More Python 3 changes. Integer division in ineptpdf.py
|
||||||
# 7.1.0 - Full release for calibre 5.x
|
# 7.1.0 - Full release for calibre 5.x
|
||||||
# 7.2.0 - Update for latest KFX changes, and Python 3 Obok fixes.
|
# 7.2.0 - Update for latest KFX changes, and Python 3 Obok fixes.
|
||||||
|
# 7.2.1 - Whitespace!
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Decrypt DRMed ebooks.
|
Decrypt DRMed ebooks.
|
||||||
|
|
|
@ -848,6 +848,12 @@ class DrmIonVoucher(object):
|
||||||
def __init__(self, voucherenv, dsn, secret):
|
def __init__(self, voucherenv, dsn, secret):
|
||||||
self.dsn, self.secret = dsn, secret
|
self.dsn, self.secret = dsn, secret
|
||||||
|
|
||||||
|
if isinstance(dsn, str):
|
||||||
|
self.dsn = dsn.encode('ASCII')
|
||||||
|
|
||||||
|
if isinstance(secret, str):
|
||||||
|
self.secret = secret.encode('ASCII')
|
||||||
|
|
||||||
self.lockparams = []
|
self.lockparams = []
|
||||||
|
|
||||||
self.envelope = BinaryIonParser(voucherenv)
|
self.envelope = BinaryIonParser(voucherenv)
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
# 2.0 - Python 3 for calibre 5.0
|
# 2.0 - Python 3 for calibre 5.0
|
||||||
# 2.1 - Some fixes for debugging
|
# 2.1 - Some fixes for debugging
|
||||||
|
# 2.1.1 - Whitespace!
|
||||||
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -3,7 +3,7 @@ from __future__ import (unicode_literals, division, absolute_import,
|
||||||
print_function)
|
print_function)
|
||||||
|
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__version__ = '7.2.0'
|
__version__ = '7.2.1'
|
||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
@ -20,7 +20,7 @@ except NameError:
|
||||||
PLUGIN_NAME = 'Obok DeDRM'
|
PLUGIN_NAME = 'Obok DeDRM'
|
||||||
PLUGIN_SAFE_NAME = PLUGIN_NAME.strip().lower().replace(' ', '_')
|
PLUGIN_SAFE_NAME = PLUGIN_NAME.strip().lower().replace(' ', '_')
|
||||||
PLUGIN_DESCRIPTION = _('Removes DRM from Kobo kepubs and adds them to the library.')
|
PLUGIN_DESCRIPTION = _('Removes DRM from Kobo kepubs and adds them to the library.')
|
||||||
PLUGIN_VERSION_TUPLE = (7, 2, 0)
|
PLUGIN_VERSION_TUPLE = (7, 2, 1)
|
||||||
PLUGIN_VERSION = '.'.join([str(x) for x in PLUGIN_VERSION_TUPLE])
|
PLUGIN_VERSION = '.'.join([str(x) for x in PLUGIN_VERSION_TUPLE])
|
||||||
HELPFILE_NAME = PLUGIN_SAFE_NAME + '_Help.htm'
|
HELPFILE_NAME = PLUGIN_SAFE_NAME + '_Help.htm'
|
||||||
PLUGIN_AUTHORS = 'Anon'
|
PLUGIN_AUTHORS = 'Anon'
|
||||||
|
|
Loading…
Reference in New Issue