first commit
This commit is contained in:
79
plugin/ffmpeg/templates/ffmpeg_setting.html
Executable file
79
plugin/ffmpeg/templates/ffmpeg_setting.html
Executable file
@@ -0,0 +1,79 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
<div>
|
||||
{{ macros.m_button_group([['global_setting_save_btn', '설정 저장']])}}
|
||||
{{ macros.m_row_start('5') }}
|
||||
{{ macros.m_row_end() }}
|
||||
<nav>
|
||||
{{ macros.m_tab_head_start() }}
|
||||
{{ macros.m_tab_head2('normal', '기본', true) }}
|
||||
{{ macros.m_tab_head_end() }}
|
||||
</nav >
|
||||
<form id='setting' name='setting'>
|
||||
<div class="tab-content" id="nav-tabContent">
|
||||
{{ macros.m_tab_content_start('normal', true) }}
|
||||
{{ macros.setting_input_text_and_buttons('ffmpeg_path', 'FFMPEG 경로', [['ffmpeg_version', '버전확인'], ['select_binary_path_btn', '파일 선택']], value=arg['ffmpeg_path']) }}
|
||||
{{ macros.setting_input_text_and_buttons('temp_path', '임시 폴더', [['select_temp_path_btn', '경로 선택']], value=arg['temp_path'], desc=['다운로드 파일이 임시로 저장될 폴더 입니다.']) }}
|
||||
|
||||
{{ macros.setting_input_text_and_buttons('save_path', '저장 폴더', [['select_save_path_btn', '경로 선택']], value=arg['save_path'], placeholder='저장 폴더 경로', desc='정상적으로 완료된 파일이 이동할 폴더 입니다.') }}
|
||||
{{ macros.setting_input_int('max_pf_count', '허용 Packet Fail 수', value=arg['max_pf_count'], min='0', placeholder='0', desc=['이 값보다 Packet Fail 횟수가 더 많으면 실패처리 합니다.', '0일 경우 Packet Fail이 발생하면 바로 실패처리.']) }}
|
||||
|
||||
{{ macros.setting_checkbox('if_fail_remove_tmp_file', '임시 파일', arg['if_fail_remove_tmp_file'], desc='On : 실패시 임시 파일 자동 삭제') }}
|
||||
{{ macros.setting_input_int('timeout_minute', '타임아웃 시간', value=arg['timeout_minute'], desc=['이 시간 안에 완료가 되지 않으면 시간초과 에러를 발생합니다.', '속도가 느린 경우 값을 올려 설정하세요. 분 단위']) }}
|
||||
{{ macros.m_tab_content_end() }}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
var package_name = "{{arg['package_name'] }}";
|
||||
|
||||
$(document).ready(function(){
|
||||
});
|
||||
|
||||
//버전
|
||||
$("#ffmpeg_version").click(function(e) {
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
url: '/ffmpeg/ajax/ffmpeg_version',
|
||||
type: "POST",
|
||||
cache: false,
|
||||
data:{ },
|
||||
dataType: "json",
|
||||
success: function (list) {
|
||||
var str = '';
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
str += "<div>" + list[i] + "</div>";
|
||||
}
|
||||
document.getElementById("modal_title").innerHTML = "ffmpeg -version";
|
||||
document.getElementById("modal_body").innerHTML = str;
|
||||
$("#large_modal").modal();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$("body").on('click', '#select_temp_path_btn', function(e){
|
||||
e.preventDefault();
|
||||
m_select_local_file_modal("임시 저장 경로 선택", $('#temp_path').val().trim(), true, function(result){
|
||||
document.getElementById("temp_path").value = result;
|
||||
});
|
||||
});
|
||||
|
||||
$("body").on('click', '#select_save_path_btn', function(e){
|
||||
e.preventDefault();
|
||||
m_select_local_file_modal("저장 경로 선택", $('#save_path').val().trim(), true, function(result){
|
||||
document.getElementById("save_path").value = result;
|
||||
});
|
||||
});
|
||||
|
||||
$("body").on('click', '#select_binary_path_btn', function(e){
|
||||
e.preventDefault();
|
||||
m_select_local_file_modal("실행 파일 선택", '/', false, function(result){
|
||||
document.getElementById("ffmpeg_path").value = result;
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user