Skip to content

Commit

Permalink
[fix] engine google_video: google changed the layout of the HTML resp…
Browse files Browse the repository at this point in the history
…onse

Closes: searxng#4127
Signed-off-by: Markus Heiser <[email protected]>
  • Loading branch information
return42 committed Dec 22, 2024
1 parent 19ee529 commit 26097f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions searx/engines/google_videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down

0 comments on commit 26097f4

Please sign in to comment.