From 2a1413297ec0ca38d2803b45e3a5b3b44964657c Mon Sep 17 00:00:00 2001 From: NoDRM Date: Wed, 2 Aug 2023 07:30:39 +0200 Subject: [PATCH] Add warning to the standalone code --- DeDRM_plugin/standalone/__init__.py | 12 ++++++++++++ DeDRM_plugin/standalone/jsonconfig.py | 11 +++++++++++ DeDRM_plugin/standalone/passhash.py | 11 +++++++++++ DeDRM_plugin/standalone/remove_drm.py | 11 +++++++++++ 4 files changed, 45 insertions(+) diff --git a/DeDRM_plugin/standalone/__init__.py b/DeDRM_plugin/standalone/__init__.py index e5149bc..60b615b 100644 --- a/DeDRM_plugin/standalone/__init__.py +++ b/DeDRM_plugin/standalone/__init__.py @@ -7,6 +7,18 @@ from __future__ import absolute_import, print_function # Copyright © 2021 NoDRM +""" + +NOTE: This code is not functional (yet). I started working on it a while ago +to make a standalone version of the plugins that could work without Calibre, +too, but for now there's only a rough code structure and no working code yet. + +Currently, to use these plugins, you will need to use Calibre. Hopwfully that'll +change in the future. + +""" + + OPT_SHORT_TO_LONG = [ ["c", "config"], ["e", "extract"], diff --git a/DeDRM_plugin/standalone/jsonconfig.py b/DeDRM_plugin/standalone/jsonconfig.py index a4149bf..b7603df 100644 --- a/DeDRM_plugin/standalone/jsonconfig.py +++ b/DeDRM_plugin/standalone/jsonconfig.py @@ -8,6 +8,17 @@ from __future__ import absolute_import, print_function # Taken from Calibre code - Copyright © 2008, Kovid Goyal kovid@kovidgoyal.net, GPLv3 +""" + +NOTE: This code is not functional (yet). I started working on it a while ago +to make a standalone version of the plugins that could work without Calibre, +too, but for now there's only a rough code structure and no working code yet. + +Currently, to use these plugins, you will need to use Calibre. Hopwfully that'll +change in the future. + +""" + #@@CALIBRE_COMPAT_CODE@@ import sys, os, codecs, json diff --git a/DeDRM_plugin/standalone/passhash.py b/DeDRM_plugin/standalone/passhash.py index f7bf565..028828d 100644 --- a/DeDRM_plugin/standalone/passhash.py +++ b/DeDRM_plugin/standalone/passhash.py @@ -8,6 +8,17 @@ from __future__ import absolute_import, print_function # Copyright © 2021 NoDRM +""" + +NOTE: This code is not functional (yet). I started working on it a while ago +to make a standalone version of the plugins that could work without Calibre, +too, but for now there's only a rough code structure and no working code yet. + +Currently, to use these plugins, you will need to use Calibre. Hopwfully that'll +change in the future. + +""" + #@@CALIBRE_COMPAT_CODE@@ import os, sys diff --git a/DeDRM_plugin/standalone/remove_drm.py b/DeDRM_plugin/standalone/remove_drm.py index 8273b97..a67bc6f 100644 --- a/DeDRM_plugin/standalone/remove_drm.py +++ b/DeDRM_plugin/standalone/remove_drm.py @@ -8,6 +8,17 @@ from __future__ import absolute_import, print_function # Copyright © 2021 NoDRM +""" + +NOTE: This code is not functional (yet). I started working on it a while ago +to make a standalone version of the plugins that could work without Calibre, +too, but for now there's only a rough code structure and no working code yet. + +Currently, to use these plugins, you will need to use Calibre. Hopwfully that'll +change in the future. + +""" + #@@CALIBRE_COMPAT_CODE@@ import os, sys