Commit 6850612d91a9f98c2a5d090e8a7d9ad93ea4e02d
1 parent
aee6c827
Exists in
master
and in
1 other branch
Remove linhas de debug em video
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
endpoints/video.js
| @@ -42,8 +42,8 @@ function init(req, res) { | @@ -42,8 +42,8 @@ function init(req, res) { | ||
| 42 | 42 | ||
| 43 | } else if (req.body.video_url !== undefined) { | 43 | } else if (req.body.video_url !== undefined) { |
| 44 | http.get(req.body.video_url, function(response) { | 44 | http.get(req.body.video_url, function(response) { |
| 45 | - console.log("video_url: downloading"); | ||
| 46 | 45 | ||
| 46 | + // Salva o arquivo em disco | ||
| 47 | response.pipe(fs.createWriteStream(id)); | 47 | response.pipe(fs.createWriteStream(id)); |
| 48 | 48 | ||
| 49 | var video = { | 49 | var video = { |
| @@ -51,8 +51,6 @@ function init(req, res) { | @@ -51,8 +51,6 @@ function init(req, res) { | ||
| 51 | 'path': id | 51 | 'path': id |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | - console.log("download video"); | ||
| 55 | - | ||
| 56 | processVideo(id, video, req, res); | 54 | processVideo(id, video, req, res); |
| 57 | 55 | ||
| 58 | }).on('error', function(e) { | 56 | }).on('error', function(e) { |