diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-12-22 09:54:02 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-12-22 11:45:46 +0100 |
commit | 26097f444b536e07f4790597134ab20df5639df3 (patch) | |
tree | 8325be025fc566ac50c20cb7ac9f1d9237ebfe0b | |
parent | 19ee529b78bd7840488fd36005270f7ae25e566b (diff) | |
download | searxng-26097f444b536e07f4790597134ab20df5639df3.tar.gz searxng-26097f444b536e07f4790597134ab20df5639df3.zip |
[fix] engine google_video: google changed the layout of the HTML response
Closes: https://github.com/searxng/searxng/issues/4127
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r-- | searx/engines/google_videos.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/google_videos.py b/searx/engines/google_videos.py index c8fc934af..f41974cfe 100644 --- a/searx/engines/google_videos.py +++ b/searx/engines/google_videos.py @@ -115,9 +115,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="ITZIwc"]', 0) + c_node = eval_xpath_getindex(result, './/div[contains(@class, "ITZIwc")]', 0) content = extract_text(c_node) - pub_info = extract_text(eval_xpath(result, './/div[@class="gqF9jc"]')) + pub_info = extract_text(eval_xpath(result, './/div[contains(@class, "gqF9jc")]')) results.append( { |