39 lines
1023 B
HTML
Executable File
39 lines
1023 B
HTML
Executable File
{% extends "base.html" %}
|
|
{% block content %}
|
|
|
|
<div>
|
|
{{ macros.setting_input_text('url', 'URL', placeholder='http:// 주소', desc='비디오 파일 주소 or m3u8 주소') }}
|
|
{{ macros.setting_input_text('filename', '파일명', value=arg['temp_filename']) }}
|
|
{{ macros.setting_button([['download_start', '다운로드']]) }}
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
var package_name = "{{arg['package_name'] }}";
|
|
|
|
$(document).ready(function(){
|
|
});
|
|
|
|
//다운로드시작
|
|
$("#download_start").click(function(e) {
|
|
e.preventDefault();
|
|
if ($("#url").val().startsWith('http') == false) {
|
|
$.notify('<strong>URL을 입력하세요.</strong>', {
|
|
type: 'warning'
|
|
});
|
|
return;
|
|
}
|
|
$.ajax({
|
|
url: '/ffmpeg/ajax/download',
|
|
type: "POST",
|
|
cache: false,
|
|
data: {url: $("#url").val(), filename: $("#filename").val()},
|
|
dataType: "json",
|
|
success: function (data) {
|
|
$.notify('<strong>분석중..</strong>', {
|
|
type: 'info'
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
{% endblock %} |