Commit 0fdd2d3b3b5a4f8adb1aa75f307f5e4ee338cc33
1 parent
26f954ac
Exists in
master
and in
1 other branch
Test in video and subtitle endpoint
Showing
1 changed file
with
0 additions
and
4 deletions
Show diff stats
server.js
| @@ -178,15 +178,11 @@ app.post('/api', function(req, res){ | @@ -178,15 +178,11 @@ app.post('/api', function(req, res){ | ||
| 178 | if (error) { console.log(error); } | 178 | if (error) { console.log(error); } |
| 179 | }); | 179 | }); |
| 180 | 180 | ||
| 181 | - sleep(2000); | ||
| 182 | - | ||
| 183 | /* Move a legenda submetido para a pasta com o seu ID correspondente */ | 181 | /* Move a legenda submetido para a pasta com o seu ID correspondente */ |
| 184 | fs.rename(req.files.legenda.path, __dirname + '/uploads/' + ID_FROM_BD + '/' + req.files.legenda.name, function(error) { | 182 | fs.rename(req.files.legenda.path, __dirname + '/uploads/' + ID_FROM_BD + '/' + req.files.legenda.name, function(error) { |
| 185 | if (error) { console.log(error); } | 183 | if (error) { console.log(error); } |
| 186 | }); | 184 | }); |
| 187 | 185 | ||
| 188 | - sleep(2000); | ||
| 189 | - | ||
| 190 | /* Cria a linha de comando */ | 186 | /* Cria a linha de comando */ |
| 191 | var command_line = 'vlibras_user/vlibras-core/./gtaaas ' + parameters.getServiceType(req.query.servico) + ' uploads/' + ID_FROM_BD + '/' + | 187 | var command_line = 'vlibras_user/vlibras-core/./gtaaas ' + parameters.getServiceType(req.query.servico) + ' uploads/' + ID_FROM_BD + '/' + |
| 192 | req.files.video.name + ' uploads/' + ID_FROM_BD + '/' + req.files.legenda.name + ' ' + parameters.getLanguage(req.query.linguagem) + | 188 | req.files.video.name + ' uploads/' + ID_FROM_BD + '/' + req.files.legenda.name + ' ' + parameters.getLanguage(req.query.linguagem) + |