diff options
author | Alexandre Flament <alex@al-f.net> | 2021-03-21 15:10:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-21 15:10:39 +0100 |
commit | a48ec0b4bd7015fa0b8dc2aab6e7f328980e901d (patch) | |
tree | 17b705415e2218c757dfe3ae10b02d90ec68b1fe /searx | |
parent | 30c950a2c7c805debfa5e32efed5eb3ff4e86b64 (diff) | |
parent | 38c210d7468d709a77e1a45bacfba87fd0975bef (diff) | |
download | searxng-a48ec0b4bd7015fa0b8dc2aab6e7f328980e901d.tar.gz searxng-a48ec0b4bd7015fa0b8dc2aab6e7f328980e901d.zip |
Merge pull request #2671 from searx/update-soundcloud
[mod] soundcloud: faster initialization
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/soundcloud.py | 2 |
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: |