fixed search endpoint

This commit is contained in:
AnouarElKihal 2025-08-02 05:35:58 +02:00
parent 10d13e04f9
commit 5214665a58

View file

@ -49,7 +49,7 @@ def callback(code: str):
@music_router.get("/search")
def search(query: str):
try:
url = SPOTIFY_PLAY_URL + f"search?q={query}&type={["track"]}"
url = SPOTIFY_PLAY_URL + f"search?q={query}&type=track"
header = {
"Authorization": "Bearer " + SessionManager.instance().get_current_session().access_tokens,
"Content-Type": "application/json"