목록 메뉴에 전체 중지 버튼 추가
This commit is contained in:
@@ -131,6 +131,9 @@ API에선 직접 비트레이트를 설정할 수 있습니다.
|
|||||||
물론 해당 정보가 없으면 null입니다.
|
물론 해당 정보가 없으면 null입니다.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
v1.6.11
|
||||||
|
* 목록 메뉴에 전체 중지 버튼 추가
|
||||||
|
|
||||||
v1.6.10
|
v1.6.10
|
||||||
* CORS 허용 설정이 작동하지 않는 문제 수정
|
* CORS 허용 설정이 작동하지 않는 문제 수정
|
||||||
Thanks to [dbswnschl](https://github.com/dbswnschl)
|
Thanks to [dbswnschl](https://github.com/dbswnschl)
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"description": "\uc720\ud29c\ube0c, \ub124\uc774\ubc84TV \ub4f1 \ub3d9\uc601\uc0c1 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub3d9\uc601\uc0c1 \ub2e4\uc6b4\ub85c\ub4dc", "name": "youtube-dl", "more": "", "version": "1.6.10", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"}
|
{"description": "\uc720\ud29c\ube0c, \ub124\uc774\ubc84TV \ub4f1 \ub3d9\uc601\uc0c1 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub3d9\uc601\uc0c1 \ub2e4\uc6b4\ub85c\ub4dc", "name": "youtube-dl", "more": "", "version": "1.6.11", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"}
|
||||||
@@ -43,7 +43,7 @@ menu = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugin_info = {
|
plugin_info = {
|
||||||
'version': '1.6.10',
|
'version': '1.6.11',
|
||||||
'name': 'youtube-dl',
|
'name': 'youtube-dl',
|
||||||
'category_name': 'vod',
|
'category_name': 'vod',
|
||||||
'developer': 'joyfuI',
|
'developer': 'joyfuI',
|
||||||
@@ -149,6 +149,11 @@ def ajax(sub):
|
|||||||
ret.append(data)
|
ret.append(data)
|
||||||
return jsonify(ret)
|
return jsonify(ret)
|
||||||
|
|
||||||
|
elif sub == 'all_stop':
|
||||||
|
for i in LogicNormal.youtube_dl_list:
|
||||||
|
i.stop()
|
||||||
|
return jsonify([])
|
||||||
|
|
||||||
elif sub == 'stop':
|
elif sub == 'stop':
|
||||||
index = int(request.form['index'])
|
index = int(request.form['index'])
|
||||||
LogicNormal.youtube_dl_list[index].stop()
|
LogicNormal.youtube_dl_list[index].stop()
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
{{ macros.setting_select('preset', '동영상 포맷 프리셋', arg['preset_list'], col='3') }}
|
{{ macros.setting_select('preset', '동영상 포맷 프리셋', arg['preset_list'], col='3') }}
|
||||||
{{ macros.setting_input_text('format', '동영상 포맷', desc=['포맷 지정은 https://github.com/ytdl-org/youtube-dl/blob/master/README.md#format-selection 참고', '빈칸으로 두면 최고 화질로 다운로드합니다.']) }}
|
{{ macros.setting_input_text('format', '동영상 포맷', desc=['포맷 지정은 https://github.com/ytdl-org/youtube-dl/blob/master/README.md#format-selection 참고', '빈칸으로 두면 최고 화질로 다운로드합니다.']) }}
|
||||||
{{ setting_select2('postprocessor', '후처리', arg['postprocessor_list'], col='3', desc='다운로드 후 FFmpeg로 후처리합니다.') }}
|
{{ setting_select2('postprocessor', '후처리', arg['postprocessor_list'], col='3', desc='다운로드 후 FFmpeg로 후처리합니다.') }}
|
||||||
{{ macros.setting_button([['download_start', '다운로드']]) }}
|
{{ macros.setting_button([['download_btn', '다운로드']]) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 다운로드
|
// 다운로드
|
||||||
$('#download_start').click(function () {
|
$('#download_btn').click(function () {
|
||||||
let url = $('#url').val();
|
let url = $('#url').val();
|
||||||
if (url.startsWith('http') === false) {
|
if (url.startsWith('http') === false) {
|
||||||
$.notify('<strong>URL을 입력하세요.</strong>', {
|
$.notify('<strong>URL을 입력하세요.</strong>', {
|
||||||
|
|||||||
@@ -21,6 +21,11 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
{{ macros.m_row_start() }}
|
||||||
|
{{ macros.m_button('all_stop_btn', '전체 중지') }}
|
||||||
|
{{ macros.m_row_end() }}
|
||||||
|
<div class="d-inline-block"></div>
|
||||||
|
|
||||||
<table id="result_table" class="table table-sm tableRowHover">
|
<table id="result_table" class="table table-sm tableRowHover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -67,6 +72,21 @@
|
|||||||
$('#list').html(str);
|
$('#list').html(str);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 전체 중지
|
||||||
|
$('#all_stop_btn').click(function () {
|
||||||
|
$.ajax({
|
||||||
|
url: `/${package_name}/ajax/all_stop`,
|
||||||
|
type: 'POST',
|
||||||
|
cache: false,
|
||||||
|
data: {},
|
||||||
|
dataType: 'json'
|
||||||
|
}).done(function () {
|
||||||
|
location.reload();
|
||||||
|
});
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
|
// 중지
|
||||||
$('#list').on('click', '.youtube-dl_stop', function () {
|
$('#list').on('click', '.youtube-dl_stop', function () {
|
||||||
let index = $(this).data('index');
|
let index = $(this).data('index');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|||||||
Reference in New Issue
Block a user