summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-08-22 08:10:19 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-08-22 08:34:04 +0200
commit4b42644579581699ad1d4b7974610933277dd021 (patch)
tree58422567975ecaa07c0bd0b0e53b9f5c537065b4 /searx
parentd52919cc3e90b588e252e41e73f06aea49097db2 (diff)
downloadsearxng-4b42644579581699ad1d4b7974610933277dd021.tar.gz
searxng-4b42644579581699ad1d4b7974610933277dd021.zip
[fix] engine google_video: google has changed the layout of the rsponse
Closes: https://github.com/searxng/searxng/issues/2664 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/google_videos.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/searx/engines/google_videos.py b/searx/engines/google_videos.py
index 985189df5..f922e1f70 100644
--- a/searx/engines/google_videos.py
+++ b/searx/engines/google_videos.py
@@ -114,10 +114,9 @@ def response(resp):
title = extract_text(eval_xpath_getindex(result, './/a/h3[1]', 0))
url = eval_xpath_getindex(result, './/a/h3[1]/../@href', 0)
- c_node = eval_xpath_getindex(result, './/div[@class="Uroaid"]', 0)
+ c_node = eval_xpath_getindex(result, './/div[@class="ITZIwc"]', 0)
content = extract_text(c_node)
- pub_info = extract_text(eval_xpath(result, './/div[@class="P7xzyf"]'))
- length = extract_text(eval_xpath(result, './/div[@class="J1mWY"]'))
+ pub_info = extract_text(eval_xpath(result, './/div[@class="gqF9jc"]'))
results.append(
{
@@ -126,7 +125,6 @@ def response(resp):
'content': content,
'author': pub_info,
'thumbnail': img_src,
- 'length': length,
'template': 'videos.html',
}
)