diff options
| author | Bnyro <bnyro@tutanota.com> | 2025-03-20 20:52:58 +0100 |
|---|---|---|
| committer | Bnyro <bnyro@tutanota.com> | 2025-03-20 20:55:09 +0100 |
| commit | 3668c7012e245c9512aebd8d2a140a6f0c92ab7e (patch) | |
| tree | 071e67ab018434d8c4a21248055c6d43c6ab51a7 /searx/engines/presearch.py | |
| parent | 556db857aad658a752e6ded3ac7d8b56b385e992 (diff) | |
[fix] presearch videos: item description and duration are located in metadata field
Diffstat (limited to 'searx/engines/presearch.py')
| -rw-r--r-- | searx/engines/presearch.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/presearch.py b/searx/engines/presearch.py index 1940cc7ad..ed68e1507 100644 --- a/searx/engines/presearch.py +++ b/searx/engines/presearch.py @@ -264,14 +264,13 @@ def response(resp): # a video and not to a video stream --> SearXNG can't use the video template. for item in json_resp.get('videos', []): - metadata = [x for x in [item.get('description'), item.get('duration')] if x] results.append( { 'title': html_to_text(item['title']), 'url': item.get('link'), - 'content': '', - 'metadata': ' / '.join(metadata), + 'content': item.get('description', ''), 'thumbnail': item.get('image'), + 'length': item.get('duration'), } ) |