diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 15:40:56 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 15:40:56 +0200 |
| commit | e243e4f65cc2c98724a1cfb4d28ac5f1d1bc0a79 (patch) | |
| tree | b843eed4b0a39d58b1feeaf9a2f44182867cccf5 /app/relay/modules | |
| parent | ba825eb101f8ca1cbf5de7a87c6c2995a0d687a5 (diff) | |
api events over bridge
Diffstat (limited to 'app/relay/modules')
| -rw-r--r-- | app/relay/modules/samplernn.js | 7 |
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 } } |
