목록 메뉴에 전체 중지 버튼 추가

This commit is contained in:
joyfuI
2020-10-11 12:23:38 +09:00
parent 36f3ecab76
commit 3318a11788
5 changed files with 32 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ menu = {
}
plugin_info = {
'version': '1.6.10',
'version': '1.6.11',
'name': 'youtube-dl',
'category_name': 'vod',
'developer': 'joyfuI',
@@ -149,6 +149,11 @@ def ajax(sub):
ret.append(data)
return jsonify(ret)
elif sub == 'all_stop':
for i in LogicNormal.youtube_dl_list:
i.stop()
return jsonify([])
elif sub == 'stop':
index = int(request.form['index'])
LogicNormal.youtube_dl_list[index].stop()