Skip to content

Commit

Permalink
[fix] engine google_video: google has changed the layout of the rsponse
Browse files Browse the repository at this point in the history
Closes: searxng#2664
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
  • Loading branch information
return42 committed Aug 22, 2023
1 parent d52919c commit 4b42644
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions searx/engines/google_videos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand All @@ -126,7 +125,6 @@ def response(resp):
'content': content,
'author': pub_info,
'thumbnail': img_src,
'length': length,
'template': 'videos.html',
}
)
Expand Down

0 comments on commit 4b42644

Please sign in to comment.