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, 1 insertions, 3 deletions
diff --git a/searx/engines/youtube_api.py b/searx/engines/youtube_api.py
index 6de18aa2c..f8bc353f4 100644
--- a/searx/engines/youtube_api.py
+++ b/searx/engines/youtube_api.py
@@ -34,9 +34,7 @@ def request(query, params):
params['url'] = search_url.format(query=urlencode({'q': query}),
api_key=api_key)
- # add language tag if specified
- if params['language'] != 'all':
- params['url'] += '&relevanceLanguage=' + params['language'].split('-')[0]
+ params['url'] += '&relevanceLanguage=' + params['language'].split('-')[0]
return params