Commit e63322c433691da30b7366cdde00a2f1afdf51b1

Authored by Erickson Silva
1 parent 2ffea568
Exists in master and in 1 other branch devel

Adiciona arquivos de áudio suportados pelo endpoint 'audio'

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
helpers/parameters.js
@@ -156,7 +156,7 @@ function checkSubtitle(file) { @@ -156,7 +156,7 @@ function checkSubtitle(file) {
156 }; 156 };
157 157
158 function checkAudio(file) { 158 function checkAudio(file) {
159 - var accepted_file_types = ['mp3', 'wav']; 159 + var accepted_file_types = ['mp3', 'wav', 'aac', 'flac', 'ogg', 'wma'];
160 return check_type(file, accepted_file_types) 160 return check_type(file, accepted_file_types)
161 }; 161 };
162 162
@@ -199,4 +199,4 @@ module.exports.checkVideo = checkVideo; @@ -199,4 +199,4 @@ module.exports.checkVideo = checkVideo;
199 module.exports.checkSubtitle = checkSubtitle; 199 module.exports.checkSubtitle = checkSubtitle;
200 module.exports.checkAudio = checkAudio; 200 module.exports.checkAudio = checkAudio;
201 201
202 -module.exports.errorMessage = errorMessage;  
203 \ No newline at end of file 202 \ No newline at end of file
  203 +module.exports.errorMessage = errorMessage;