summaryrefslogtreecommitdiff
path: root/searx/engines/youtube_noapi.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2020-06-10 04:55:04 +0000
committerGitHub <noreply@github.com>2020-06-10 04:55:04 +0000
commitcc82303b62c8b118804d088beedf273b5a1b72ed (patch)
tree2cb12cb29d8fc5462f0b08fbb29182d2af142847 /searx/engines/youtube_noapi.py
parent2b1f73ad49b6f228830fd07c5cde8be0dcb29cd5 (diff)
parentaa7c043ff40bd1c1ec2e81748627aeac24608580 (diff)
Merge branch 'master' into about-opensearch
Diffstat (limited to 'searx/engines/youtube_noapi.py')
-rw-r--r--searx/engines/youtube_noapi.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/engines/youtube_noapi.py b/searx/engines/youtube_noapi.py
index 49d0ae604..68a3739a2 100644
--- a/searx/engines/youtube_noapi.py
+++ b/searx/engines/youtube_noapi.py
@@ -70,11 +70,15 @@ def response(resp):
title = get_text_from_json(video.get('title', {}))
content = get_text_from_json(video.get('descriptionSnippet', {}))
embedded = embedded_url.format(videoid=videoid)
+ author = get_text_from_json(video.get('ownerText', {}))
+ length = get_text_from_json(video.get('lengthText', {}))
# append result
results.append({'url': url,
'title': title,
'content': content,
+ 'author': author,
+ 'length': length,
'template': 'videos.html',
'embedded': embedded,
'thumbnail': thumbnail})