diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-08-23 13:54:59 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-08-23 13:54:59 +0200 |
commit | 2c49a03494ec2cebf2c820efb257c950f170face (patch) | |
tree | dabb8de9886cfdef13fc97f2c3dd0eb226d7b79d /events.py | |
parent | 07518d34d676df41bf2259cf66ba92444673c810 (diff) |
Read tracks and directories from the database.
Diffstat (limited to 'events.py')
-rw-r--r-- | events.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}) |