mirror of https://github.com/afkcodes/zspotify.git
Limit invoke_url retry's to 5
This commit is contained in:
parent
e00ad81c5e
commit
58fe9ae9e1
|
@ -89,7 +89,7 @@ class ZSpotify:
|
|||
responseText = response.text
|
||||
responseJson = response.json()
|
||||
|
||||
if 'error' in responseJson and tryCount < 20:
|
||||
if 'error' in responseJson and tryCount < 5:
|
||||
|
||||
Printer.Print(PrintChannel.API_ERROR, f"Spotify API Error ({responseJson['error']['status']}): {responseJson['error']['message']}")
|
||||
time.sleep(5)
|
||||
|
|
Loading…
Reference in New Issue