summaryrefslogtreecommitdiff
path: root/events.py
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-08-23 13:54:59 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-08-23 13:54:59 +0200
commit2c49a03494ec2cebf2c820efb257c950f170face (patch)
treedabb8de9886cfdef13fc97f2c3dd0eb226d7b79d /events.py
parent07518d34d676df41bf2259cf66ba92444673c810 (diff)
Read tracks and directories from the database.
Diffstat (limited to 'events.py')
-rw-r--r--events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/events.py b/events.py
index 0d0360d..1c9d681 100644
--- a/events.py
+++ b/events.py
@@ -28,7 +28,7 @@ def EventSubscriber(app, environ, start_response, path):
data = None
if address in ('cached', 'recoding'):
track, path = message.split(None, 1)
- data = json.dumps({'type': address, 'path': path, 'track': track})
+ data = json.dumps({'type': address, 'path': path, 'track': None if track == '_' else track})
yield 'data: {0}\n\n'.format(data)
elif address in ('play',):
data = json.dumps({'type': address, 'path': message})