1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-13 21:52:18 +00:00

Playlist creation was actully broken

This commit is contained in:
spl0k 2013-06-27 12:16:13 +02:00
parent 78715e1c24
commit 70aeea67d7

View File

@ -37,7 +37,7 @@ def create_playlist():
# songId actually doesn't seem to be required # songId actually doesn't seem to be required
songs = request.args.getlist('songId') or request.form.getlist('songId') songs = request.args.getlist('songId') or request.form.getlist('songId')
try: try:
playlist_id = uuid.UUID(playlist_id) playlist_id = uuid.UUID(playlist_id) if playlist_id else None
songs = set(map(uuid.UUID, songs)) songs = set(map(uuid.UUID, songs))
except: except:
return request.error_formatter(0, 'Invalid parameter') return request.error_formatter(0, 'Invalid parameter')