mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-23 01:16:18 +00:00
Fixed streaming
This commit is contained in:
parent
54e4a77ae5
commit
ed9399da79
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user