summaryrefslogtreecommitdiff
path: root/app/relay
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-05 15:40:56 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-05 15:40:56 +0200
commite243e4f65cc2c98724a1cfb4d28ac5f1d1bc0a79 (patch)
treeb843eed4b0a39d58b1feeaf9a2f44182867cccf5 /app/relay
parentba825eb101f8ca1cbf5de7a87c6c2995a0d687a5 (diff)
api events over bridge
Diffstat (limited to 'app/relay')
-rw-r--r--app/relay/modules/samplernn.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/relay/modules/samplernn.js b/app/relay/modules/samplernn.js
index bdbe602..2dacaa7 100644
--- a/app/relay/modules/samplernn.js
+++ b/app/relay/modules/samplernn.js
@@ -12,7 +12,12 @@ const fetch = {
},
listen: (task, line, i) => {
// here i need to bridge again... get the filename that comes back from youtube-dl
- // and tell the cortex that URL -> fn and add the filename!s
+ // and tell the cortex that URL -> fn and add the filename!
+ if ( line.match(/^got fn, /) ) {
+ let dataset = line.split(' => ')[1].trim()
+ task.dataset = dataset
+ return { type: 'progress', action: 'set_dataset', task, }
+ }
return null
}
}