From ed9399da7926b6db1f3cb850bf6cd1e000306432 Mon Sep 17 00:00:00 2001 From: spl0k Date: Thu, 12 Jun 2014 13:54:42 +0200 Subject: [PATCH] Fixed streaming --- api/media.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/media.py b/api/media.py index 8457cb5..19e451a 100644 --- a/api/media.py +++ b/api/media.py @@ -57,7 +57,9 @@ def stream_media(): if client: prefs = store.get(ClientPrefs, (request.user.id, client)) 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) if prefs.format: