Merge branch 'master' of uh_wot/deemix into master
This commit is contained in:
commit
a9d6b0e9f6
|
@ -46,7 +46,7 @@ class Deezer:
|
||||||
headers=self.http_headers
|
headers=self.http_headers
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
time.wait(2)
|
time.sleep(2)
|
||||||
return self.get_track_md5(sng_id)
|
return self.get_track_md5(sng_id)
|
||||||
response = site.json()
|
response = site.json()
|
||||||
return response['results']['PUID']
|
return response['results']['PUID']
|
||||||
|
@ -66,7 +66,7 @@ class Deezer:
|
||||||
headers=self.http_headers
|
headers=self.http_headers
|
||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
time.wait(2)
|
time.sleep(2)
|
||||||
return self.gw_api_call(method, args)
|
return self.gw_api_call(method, args)
|
||||||
return result.json()
|
return result.json()
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ class Deezer:
|
||||||
)
|
)
|
||||||
result_json = result.json()
|
result_json = result.json()
|
||||||
except:
|
except:
|
||||||
time.wait(2)
|
time.sleep(2)
|
||||||
return self.api_call(method, args)
|
return self.api_call(method, args)
|
||||||
if 'error' in result_json.keys():
|
if 'error' in result_json.keys():
|
||||||
raise APIError()
|
raise APIError()
|
||||||
|
|
Loading…
Reference in New Issue