fix: remove patch js2py

This commit is contained in:
nyyu 2024-04-21 20:32:33 +02:00
parent e8e4ff79c6
commit 481f57daf9
2 changed files with 0 additions and 30 deletions

View File

@ -27,8 +27,6 @@ RUN \
PYLOAD="pyload-ng[all]==${VERSION}"; \ PYLOAD="pyload-ng[all]==${VERSION}"; \
fi && \ fi && \
pip3 install --no-cache-dir --break-system-packages -U "${PYLOAD}" && \ pip3 install --no-cache-dir --break-system-packages -U "${PYLOAD}" && \
pip uninstall -y Js2Py && \
cd /usr/local/lib/python3.12/site-packages/ && patch -Np1 < /py3-12.patch && cd / \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
apk del --purge \ apk del --purge \
build-dependencies && \ build-dependencies && \

View File

@ -1,28 +0,0 @@
diff --git a/pyload/core/utils/misc.py b/pyload/core/utils/misc.py
index 6d2f23cc5..96d931108 100644
--- a/pyload/core/utils/misc.py
+++ b/pyload/core/utils/misc.py
@@ -3,11 +3,6 @@
import random
import string
-import js2py
-
-js2py.disable_pyimport()
-
-
def random_string(length):
seq = string.ascii_letters + string.digits + string.punctuation
return "".join(random.choice(seq) for _ in range(length))
@@ -23,8 +18,7 @@ def is_plural(value):
def eval_js(script, es6=False):
# return requests_html.HTML().render(script=script, reload=False)
- return (js2py.eval_js6 if es6 else js2py.eval_js)(script)
-
+ return None
def accumulate(iterable, to_map=None):
"""
--