pharmaia commited on
Commit
b806250
·
verified ·
1 Parent(s): cbabc21

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -646,14 +646,9 @@ def spotify_create_playlist(
646
  required_scope = "playlist-modify-public" if public else "playlist-modify-private"
647
  _require_any_scope([required_scope], "create playlist")
648
 
649
- me = _spotify_request("GET", "/me")
650
- user_id = str(me.get("id", "")).strip()
651
- if not user_id:
652
- raise SpotifyAuthError("Could not resolve current Spotify user id.")
653
-
654
  payload = _spotify_request(
655
  "POST",
656
- f"/users/{user_id}/playlists",
657
  json_body={
658
  "name": name.strip(),
659
  "description": description,
 
646
  required_scope = "playlist-modify-public" if public else "playlist-modify-private"
647
  _require_any_scope([required_scope], "create playlist")
648
 
 
 
 
 
 
649
  payload = _spotify_request(
650
  "POST",
651
+ "/me/playlists",
652
  json_body={
653
  "name": name.strip(),
654
  "description": description,