summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-03-21 15:10:39 +0100
committerGitHub <noreply@github.com>2021-03-21 15:10:39 +0100
commita48ec0b4bd7015fa0b8dc2aab6e7f328980e901d (patch)
tree17b705415e2218c757dfe3ae10b02d90ec68b1fe
parent30c950a2c7c805debfa5e32efed5eb3ff4e86b64 (diff)
parent38c210d7468d709a77e1a45bacfba87fd0975bef (diff)
downloadsearxng-a48ec0b4bd7015fa0b8dc2aab6e7f328980e901d.tar.gz
searxng-a48ec0b4bd7015fa0b8dc2aab6e7f328980e901d.zip
Merge pull request #2671 from searx/update-soundcloud
[mod] soundcloud: faster initialization
-rw-r--r--searx/engines/soundcloud.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/soundcloud.py b/searx/engines/soundcloud.py
index 9e414746f..b3e3383bd 100644
--- a/searx/engines/soundcloud.py
+++ b/searx/engines/soundcloud.py
@@ -55,7 +55,7 @@ def get_client_id():
app_js_urls = [script_tag.get('src') for script_tag in script_tags if script_tag is not None]
# extracts valid app_js urls from soundcloud.com content
- for app_js_url in app_js_urls:
+ for app_js_url in app_js_urls[::-1]:
# gets app_js and searches for the clientid
response = http_get(app_js_url)
if response.ok: