Commit 71770f47427293b5c6a3f2d152a30cdb807012af
1 parent
416c078d
Exists in
master
and in
1 other branch
Corrige o path na chamada do core
estava ./path, mas deve ser path
Showing
2 changed files
with
3 additions
and
1 deletions
Show diff stats
endpoints/video.js
... | ... | @@ -93,8 +93,9 @@ function downloadAndMoveFiles(folder, req, locals, callback) { |
93 | 93 | function callCore(id, video, subtitle, req, res) { |
94 | 94 | |
95 | 95 | /* Cria a linha de comando */ |
96 | + /* slice(2) é para transformar ./path em path */ | |
96 | 97 | var command_line = 'vlibras_user/vlibras-core/./vlibras ' + parameters.getServiceType(req.body.servico) + ' ' + |
97 | - video.path + ' 1 ' + parameters.getPosition(req.body.posicao) + ' ' + parameters.getSize(req.body.tamanho) + ' ' + | |
98 | + video.path.slice(2) + ' 1 ' + parameters.getPosition(req.body.posicao) + ' ' + parameters.getSize(req.body.tamanho) + ' ' + | |
98 | 99 | parameters.getTransparency(req.body.transparencia) + ' ' + id + ' > /tmp/core_log 2>&1'; |
99 | 100 | |
100 | 101 | console.log("=== Core: " + command_line); | ... | ... |
endpoints/video_legenda.js
... | ... | @@ -98,6 +98,7 @@ function downloadAndMoveFiles(folder, req, locals, callback) { |
98 | 98 | function callCore(id, video, subtitle, req, res) { |
99 | 99 | |
100 | 100 | /* Cria a linha de comando */ |
101 | + /* slice(2) é para transformar ./path em path */ | |
101 | 102 | var command_line = 'vlibras_user/vlibras-core/./vlibras ' + parameters.getServiceType(req.body.servico) + ' ' + |
102 | 103 | video.path.slice(2) + ' ' + subtitle.path.slice(2) + ' ' + parameters.getLanguage(req.body.linguagem) + |
103 | 104 | ' ' + parameters.getPosition(req.body.posicao) + ' ' + parameters.getSize(req.body.tamanho) + ' ' + | ... | ... |