1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +00:00

Fixed streaming

This commit is contained in:
spl0k 2014-06-12 13:54:42 +02:00
parent 54e4a77ae5
commit ed9399da79

View File

@ -57,7 +57,9 @@ def stream_media():
if client: if client:
prefs = store.get(ClientPrefs, (request.user.id, client)) prefs = store.get(ClientPrefs, (request.user.id, client))
if not prefs: if not prefs:
prefs = ClientPrefs(user_id = request.user.id, client_name = client) prefs = ClientPrefs()
prefs.user_id = request.user.id
prefs.client_name = client
store.add(prefs) store.add(prefs)
if prefs.format: if prefs.format: