diff options
author | Adam Tauber <asciimoo@gmail.com> | 2017-06-06 22:20:20 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2017-06-06 22:20:20 +0200 |
commit | 78365ffb8a083ca3e3ea905db12bdac9f273f460 (patch) | |
tree | 874334a20ca366f06c026ea326ec239737b7d57d /searx/engines/soundcloud.py | |
parent | f82646f38605a999f22bc4662f591cd56d022170 (diff) | |
download | searxng-78365ffb8a083ca3e3ea905db12bdac9f273f460.tar.gz searxng-78365ffb8a083ca3e3ea905db12bdac9f273f460.zip |
[enh] add init function to engines which loads parallel
Diffstat (limited to 'searx/engines/soundcloud.py')
-rw-r--r-- | searx/engines/soundcloud.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/searx/engines/soundcloud.py b/searx/engines/soundcloud.py index 41b40da61..d59755e04 100644 --- a/searx/engines/soundcloud.py +++ b/searx/engines/soundcloud.py @@ -41,6 +41,7 @@ embedded_url = '<iframe width="100%" height="166" ' +\ 'data-src="https://w.soundcloud.com/player/?url={uri}"></iframe>' cid_re = re.compile(r'client_id:"([^"]*)"', re.I | re.U) +guest_client_id = '' def get_client_id(): @@ -63,8 +64,10 @@ def get_client_id(): return "" -# api-key -guest_client_id = get_client_id() +def init(): + global guest_client_id + # api-key + guest_client_id = get_client_id() # do search-request |