fixed search endpoint
This commit is contained in:
parent
10d13e04f9
commit
5214665a58
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue