[enh] add init function to engines which loads parallel

This commit is contained in:
Adam Tauber 2017-06-06 22:20:20 +02:00
parent f82646f386
commit 78365ffb8a
3 changed files with 17 additions and 4 deletions

View file

@ -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