summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorjazzzooo <38244149+jazzzooo@users.noreply.github.com>2023-09-15 12:33:23 -0700
committerMarkus Heiser <markus.heiser@darmarIT.de>2023-09-15 22:00:09 +0200
commitec540a967a66156baa06797183cc64c4a3e345be (patch)
treec3c66666182712087fa8f4d9804e51bb85f485c4 /searx
parent27477f51fdd91bcea4282da462c2923070524e20 (diff)
downloadsearxng-ec540a967a66156baa06797183cc64c4a3e345be.tar.gz
searxng-ec540a967a66156baa06797183cc64c4a3e345be.zip
[fix] brave.videos
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/brave.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/brave.py b/searx/engines/brave.py
index adac37d8d..7770a2c90 100644
--- a/searx/engines/brave.py
+++ b/searx/engines/brave.py
@@ -338,7 +338,7 @@ def _parse_videos(json_resp):
'duration': result['video']['duration'],
}
- if result['thumbnail'] != "null":
+ if result['thumbnail'] is not None:
item['thumbnail'] = result['thumbnail']['src']
iframe_src = _get_iframe_src(url)