v1.6.4 FFmpeg 경로 설정 추가

FFmpeg 경로 설정 추가
API에서 GET 요청 지원
This commit is contained in:
joyfuI
2020-07-25 03:06:03 +09:00
parent f78fde9d19
commit 33b70e3ec7
9 changed files with 208 additions and 142 deletions

View File

@@ -57,7 +57,7 @@
// 후처리 변경
$('#postprocessor').change(function () {
if ($(this).find($('option[value="' + $(this).val() + '"]')).parent().attr('label') === '오디오 추출') {
if ($(this).find($(`option[value="${$(this).val()}"]`)).parent().attr('label') === '오디오 추출') {
$('#preset').val('bestaudio/best').change();
}
});
@@ -72,7 +72,7 @@
return;
}
$.ajax({
url: '/' + package_name + '/ajax/download',
url: `/${package_name}/ajax/download`,
type: 'POST',
cache: false,
data: {
@@ -81,12 +81,15 @@
format: $('#format').val(),
postprocessor: $('#postprocessor').val()
},
dataType: 'json',
success: function () {
$.notify('<strong>분석중..</strong>', {
type: 'info'
});
}
dataType: 'json'
}).done(function () {
$.notify('<strong>분석중..</strong>', {
type: 'info'
});
}).fail(function () {
$.notify('<strong>다운로드 요청 실패</strong>', {
type: 'danger'
});
});
return false;
});