mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 08:56:17 +00:00
Playlist creation was actully broken
This commit is contained in:
parent
78715e1c24
commit
70aeea67d7
@ -37,7 +37,7 @@ def create_playlist():
|
||||
# songId actually doesn't seem to be required
|
||||
songs = request.args.getlist('songId') or request.form.getlist('songId')
|
||||
try:
|
||||
playlist_id = uuid.UUID(playlist_id)
|
||||
playlist_id = uuid.UUID(playlist_id) if playlist_id else None
|
||||
songs = set(map(uuid.UUID, songs))
|
||||
except:
|
||||
return request.error_formatter(0, 'Invalid parameter')
|
||||
|
Loading…
Reference in New Issue
Block a user