summaryrefslogtreecommitdiff
path: root/searx/engines/youtube_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/youtube_api.py')
-rw-r--r--searx/engines/youtube_api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/engines/youtube_api.py b/searx/engines/youtube_api.py
index 25ad2cb04..4192530b9 100644
--- a/searx/engines/youtube_api.py
+++ b/searx/engines/youtube_api.py
@@ -56,6 +56,10 @@ def response(resp):
# parse results
for result in search_results['items']:
+ if "videoId" not in result["id"]:
+ # ignore channels
+ continue
+
videoid = result['id']['videoId']
title = result['snippet']['title']