summaryrefslogtreecommitdiff
path: root/searx/engines/naver.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2025-11-25 12:51:08 +0100
committerGitHub <noreply@github.com>2025-11-25 12:51:08 +0100
commit54a97e10431c1cdae910d3b37074a63eda7100fc (patch)
tree3769dc3a7eae53ad96660cf47dfc476b8c26963d /searx/engines/naver.py
parent0ee78c19dd5403560f14a13bbedeb75318ace45d (diff)
[mod] replace js_variable_to_python by js_obj_str_to_python (#2792) (#5477)
This patch is based on PR #2792 (old PR from 2023) - js_obj_str_to_python handle more cases - bring tests from chompjs .. - comment out tests do not pass The tests from chompjs give some overview of what is not implemented. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/naver.py')
-rw-r--r--searx/engines/naver.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/naver.py b/searx/engines/naver.py
index 5c331cd20..c715bc319 100644
--- a/searx/engines/naver.py
+++ b/searx/engines/naver.py
@@ -15,7 +15,7 @@ from searx.utils import (
extr,
html_to_text,
parse_duration_string,
- js_variable_to_python,
+ js_obj_str_to_python,
get_embeded_stream_url,
)
@@ -125,7 +125,7 @@ def parse_images(data):
match = extr(data, '<script>var imageSearchTabData=', '</script>')
if match:
- json = js_variable_to_python(match.strip())
+ json = js_obj_str_to_python(match.strip())
items = json.get('content', {}).get('items', [])
for item in items: