diff options
| author | Bnyro <bnyro@tutanota.com> | 2025-03-20 21:16:37 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-03-25 16:48:44 +0100 |
| commit | 4dfc47584d7c946b9682dc1e4858fae003b16d1f (patch) | |
| tree | 5dae9c70c914a7462ef302044fd5fc72a783bf0a /searx/engines/presearch.py | |
| parent | c28d35c7fc34da4e27700610f58c57135fea6310 (diff) | |
[refactor] duration strings: move parsing logic to utils.py
Diffstat (limited to 'searx/engines/presearch.py')
| -rw-r--r-- | searx/engines/presearch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/presearch.py b/searx/engines/presearch.py index ed68e1507..7e30801d1 100644 --- a/searx/engines/presearch.py +++ b/searx/engines/presearch.py @@ -73,7 +73,7 @@ Implementations from urllib.parse import urlencode, urlparse from searx import locales from searx.network import get -from searx.utils import gen_useragent, html_to_text +from searx.utils import gen_useragent, html_to_text, parse_duration_string about = { "website": "https://presearch.io", @@ -270,7 +270,7 @@ def response(resp): 'url': item.get('link'), 'content': item.get('description', ''), 'thumbnail': item.get('image'), - 'length': item.get('duration'), + 'length': parse_duration_string(item.get('duration')), } ) |