mirror of
https://github.com/noDRM/DeDRM_tools.git
synced 2026-03-20 04:58:56 +00:00
More work on standalone version, fix plugin
This commit is contained in:
@@ -8,7 +8,6 @@ from __future__ import print_function
|
||||
# Copyright © 2021 NoDRM
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__version__ = '10.0.2'
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
|
||||
@@ -88,12 +87,6 @@ __docformat__ = 'restructuredtext en'
|
||||
Decrypt DRMed ebooks.
|
||||
"""
|
||||
|
||||
PLUGIN_NAME = "DeDRM"
|
||||
PLUGIN_VERSION_TUPLE = tuple([int(x) for x in __version__.split(".")])
|
||||
PLUGIN_VERSION = ".".join([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'
|
||||
|
||||
import codecs
|
||||
import sys, os
|
||||
import time
|
||||
@@ -101,6 +94,8 @@ import traceback
|
||||
|
||||
#@@CALIBRE_COMPAT_CODE@@
|
||||
|
||||
import __version
|
||||
|
||||
class DeDRMError(Exception):
|
||||
pass
|
||||
|
||||
@@ -147,6 +142,10 @@ class SafeUnbuffered:
|
||||
def __getattr__(self, attr):
|
||||
return getattr(self.stream, attr)
|
||||
|
||||
PLUGIN_NAME = __version.PLUGIN_NAME
|
||||
PLUGIN_VERSION = __version.PLUGIN_VERSION
|
||||
PLUGIN_VERSION_TUPLE = __version.PLUGIN_VERSION_TUPLE
|
||||
|
||||
class DeDRM(FileTypePlugin):
|
||||
name = PLUGIN_NAME
|
||||
description = "Removes DRM from Amazon Kindle, Adobe Adept (including Kobo), Readium LCP, Barnes & Noble, Mobipocket and eReader ebooks. Credit given to i♥cabbages and The Dark Reverser for the original stand-alone scripts."
|
||||
|
||||
Reference in New Issue
Block a user