From 19e1dbbde68e0916d4b91eb77afcc1ce99dd5608 Mon Sep 17 00:00:00 2001 From: kokarare1212 Date: Fri, 21 May 2021 12:38:05 +0900 Subject: [PATCH] Update examples/player.py --- examples/player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/player.py b/examples/player.py index 6b880e1..43c493e 100644 --- a/examples/player.py +++ b/examples/player.py @@ -49,7 +49,7 @@ def client(): quality = AudioQuality.VERY_HIGH print("Set Quality to %s" % quality.name) wait() - if (args[0] == "s" or args[0] == "search") and len(args) <= 2: + if (args[0] == "s" or args[0] == "search") and len(args) >= 2: token = session.tokens().get("user-read-email") resp = requests.get("https://api.spotify.com/v1/search", {"limit": "5", "offset": "0", "q": cmd[2:], "type": "track"}, headers={"Authorization": "Bearer %s" % token}) i = 1