diff options
author | Austin-Olacsi <138650713+Austin-Olacsi@users.noreply.github.com> | 2024-09-14 16:28:35 -0600 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-10-03 07:10:53 +0200 |
commit | cbf1e9097929cf851d31bfd17e87bec7d1e51422 (patch) | |
tree | 70532240b01da30e7acd54c86e53825ac9a10135 /searx/engines/duckduckgo_extra.py | |
parent | f07ab6deb0f43a2d08f4f12335481825c6aa77ac (diff) | |
download | searxng-cbf1e9097929cf851d31bfd17e87bec7d1e51422.tar.gz searxng-cbf1e9097929cf851d31bfd17e87bec7d1e51422.zip |
add get_embeded_stream_url to searx.utils
Diffstat (limited to 'searx/engines/duckduckgo_extra.py')
-rw-r--r-- | searx/engines/duckduckgo_extra.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/engines/duckduckgo_extra.py b/searx/engines/duckduckgo_extra.py index 83ca38c26..b30574d6c 100644 --- a/searx/engines/duckduckgo_extra.py +++ b/searx/engines/duckduckgo_extra.py @@ -7,6 +7,7 @@ DuckDuckGo Extra (images, videos, news) from datetime import datetime from typing import TYPE_CHECKING from urllib.parse import urlencode +from searx.utils import get_embeded_stream_url from searx.engines.duckduckgo import fetch_traits # pylint: disable=unused-import from searx.engines.duckduckgo import ( @@ -108,7 +109,7 @@ def _video_result(result): 'title': result['title'], 'content': result['description'], 'thumbnail': result['images'].get('small') or result['images'].get('medium'), - 'iframe_src': result['embed_url'], + 'iframe_src': get_embeded_stream_url(result['content']), 'source': result['provider'], 'length': result['duration'], 'metadata': result.get('uploader'), |