summaryrefslogtreecommitdiff
path: root/searx/engines/dailymotion.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/dailymotion.py')
-rw-r--r--searx/engines/dailymotion.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/searx/engines/dailymotion.py b/searx/engines/dailymotion.py
index 813dd951f..8c69aafe0 100644
--- a/searx/engines/dailymotion.py
+++ b/searx/engines/dailymotion.py
@@ -80,11 +80,10 @@ def response(resp):
# get supported languages from their site
-def fetch_supported_languages():
+def _fetch_supported_languages(resp):
supported_languages = {}
- response = get(supported_languages_url)
- response_json = loads(response.text)
+ response_json = loads(resp.text)
for language in response_json['list']:
supported_languages[language['code']] = {}