Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -212,7 +212,8 @@ def create_playlist():
|
|
| 212 |
for chunk in chunkify(track_uris, 10):
|
| 213 |
sp.playlist_add_items(playlist['id'], chunk)
|
| 214 |
time.sleep(0.5)
|
| 215 |
-
return render_template("in_spotify.html", playlist_url=playlist['external_urls']['spotify'])
|
|
|
|
| 216 |
else:
|
| 217 |
return render_template("error.html", error_message="No valid tracks found.", return_url=url_for('playlist')), 400
|
| 218 |
|
|
|
|
| 212 |
for chunk in chunkify(track_uris, 10):
|
| 213 |
sp.playlist_add_items(playlist['id'], chunk)
|
| 214 |
time.sleep(0.5)
|
| 215 |
+
return render_template("in_spotify.html", playlist_url=playlist['external_urls']['spotify'], playlist_name=playlist_name)
|
| 216 |
+
|
| 217 |
else:
|
| 218 |
return render_template("error.html", error_message="No valid tracks found.", return_url=url_for('playlist')), 400
|
| 219 |
|