changeset 996:458eb42fa016

curvecalc: no error if music player has no current song Ignore-this: 5577a78295efc8f97c7fc53561df1ade
author drewp@bigasterisk.com
date Sun, 16 Jun 2013 18:47:33 +0000
parents 3b059200061d
children ac55250fc373
files light9/curvecalc/musicaccess.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/light9/curvecalc/musicaccess.py	Sun Jun 16 18:46:01 2013 +0000
+++ b/light9/curvecalc/musicaccess.py	Sun Jun 16 18:47:33 2013 +0000
@@ -64,7 +64,7 @@
     def _bodyReceived(self, data):
         if 't' in data:
             dispatcher.send("input time", val=data['t'])
-        if 'song' in data:
+        if 'song' in data and data['song']:
             dispatcher.send("current_player_song", song=URIRef(data['song']))
         return data['t'] # pass along to the real receiver