Mercurial > code > home > repos > light9
comparison bin/effecteval @ 1558:7eb3676b8fd6
more of the fixed add-to-song service
Ignore-this: 44b96a929b79ab201a80a6914b117f9d
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Tue, 23 May 2017 06:58:02 +0000 |
parents | 104ff4606565 |
children | 1ba1d46a70a2 |
comparison
equal
deleted
inserted
replaced
1557:104ff4606565 | 1558:7eb3676b8fd6 |
---|---|
60 try: | 60 try: |
61 song = URIRef(self.get_argument('uri')) | 61 song = URIRef(self.get_argument('uri')) |
62 except Exception: # which? | 62 except Exception: # which? |
63 song = yield currentSong() | 63 song = yield currentSong() |
64 | 64 |
65 event = self.get_argument('event') or 'default' | 65 event = self.get_argument('event', default='default') |
66 | 66 |
67 log.info("adding to %s", song) | 67 log.info("adding to %s", song) |
68 | 68 |
69 p = yield songEffectPatch(self.settings.graph, dropped, song, event, ctx=song) | 69 p = yield songEffectPatch(self.settings.graph, dropped, song, event, ctx=song) |
70 self.settings.graph.patch(p) | 70 self.settings.graph.patch(p) |