v1.2.3 저장 경로가 존재하지 않으면 생성하도록 개선

This commit is contained in:
joyfuI
2020-02-21 23:18:21 +09:00
parent 87d310900b
commit f8c080093c
5 changed files with 11 additions and 4 deletions

View File

@@ -124,6 +124,9 @@ SJVA에서 "시스템 → 플러그인 → 플러그인 수동 설치" 칸에
물론 해당 정보가 없으면 null입니다.
## Changelog
v1.2.3
* 저장 경로가 존재하지 않으면 생성하도록 개선
v1.2.2
* youtube-dl 패키지 업그레이드도 로그 찍히도록 수정

View File

@@ -1 +1 @@
{"more": "", "version": "1.2.2", "name": "youtube-dl", "developer": "joyfuI", "home": "https://github.com/joyfuI/youtube-dl", "description": "\uc720\ud29c\ube0c, \ub124\uc774\ubc84TV \ub4f1 \ub3d9\uc601\uc0c1 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub3d9\uc601\uc0c1 \ub2e4\uc6b4\ub85c\ub4dc", "icon": "", "category_name": "vod"}
{"more": "", "version": "1.2.3", "name": "youtube-dl", "developer": "joyfuI", "home": "https://github.com/joyfuI/youtube-dl", "description": "\uc720\ud29c\ube0c, \ub124\uc774\ubc84TV \ub4f1 \ub3d9\uc601\uc0c1 \uc0ac\uc774\ud2b8\uc5d0\uc11c \ub3d9\uc601\uc0c1 \ub2e4\uc6b4\ub85c\ub4dc", "icon": "", "category_name": "vod"}

View File

@@ -47,7 +47,11 @@ class Youtube_dl(object):
self.plugin = plugin
self.url = url
self.filename = filename
if not os.path.isdir(temp_path):
os.makedirs(temp_path)
self.temp_path = tempfile.mkdtemp(prefix='youtube-dl_', dir=temp_path)
if not os.path.isdir(save_path):
os.makedirs(save_path)
self.save_path = save_path
self.format_code = format_code
self.index = Youtube_dl._index

View File

@@ -33,7 +33,7 @@ def plugin_unload():
Logic.plugin_unload()
plugin_info = {
'version': '1.2.2',
'version': '1.2.3',
'name': 'youtube-dl',
'category_name': 'vod',
'icon': '',

View File

@@ -39,9 +39,9 @@
<script>
"use strict";
$(function () {
var package_name = '{{ arg["package_name"] }}';
var package_name = '{{ arg["package_name"] }}';
$(function () {
$.ajax({
url: '/' + package_name + '/ajax/list',
type: 'POST',