summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoDRM <[email protected]>2023-08-02 07:30:39 +0200
committerNoDRM <[email protected]>2023-08-02 07:30:39 +0200
commit2a1413297ec0ca38d2803b45e3a5b3b44964657c (patch)
tree333555b99dd11c6fce1e233904eefd0d85b546d2
parent815f880e347a20c1802ea8ddc72d4a22762d0e44 (diff)
Add warning to the standalone code
-rw-r--r--DeDRM_plugin/standalone/__init__.py12
-rw-r--r--DeDRM_plugin/standalone/jsonconfig.py11
-rw-r--r--DeDRM_plugin/standalone/passhash.py11
-rw-r--r--DeDRM_plugin/standalone/remove_drm.py11
4 files changed, 45 insertions, 0 deletions
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 [email protected], 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