From f8c080093c3502f2284d9d877d6c0e01c17ba344 Mon Sep 17 00:00:00 2001 From: joyfuI Date: Fri, 21 Feb 2020 23:18:21 +0900 Subject: [PATCH] =?UTF-8?q?v1.2.3=20=EC=A0=80=EC=9E=A5=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=EA=B0=80=20=EC=A1=B4=EC=9E=AC=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9C=BC=EB=A9=B4=20=EC=83=9D=EC=84=B1=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ info.json | 2 +- my_youtube_dl.py | 4 ++++ plugin.py | 2 +- templates/youtube-dl_list.html | 4 ++-- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 52aff91..0648d77 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,9 @@ SJVA에서 "시스템 → 플러그인 → 플러그인 수동 설치" 칸에 물론 해당 정보가 없으면 null입니다. ## Changelog +v1.2.3 +* 저장 경로가 존재하지 않으면 생성하도록 개선 + v1.2.2 * youtube-dl 패키지 업그레이드도 로그 찍히도록 수정 diff --git a/info.json b/info.json index 34db97c..16165ef 100644 --- a/info.json +++ b/info.json @@ -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"} \ No newline at end of file +{"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"} \ No newline at end of file diff --git a/my_youtube_dl.py b/my_youtube_dl.py index 2d0085c..b2a7604 100644 --- a/my_youtube_dl.py +++ b/my_youtube_dl.py @@ -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 diff --git a/plugin.py b/plugin.py index 8262ded..be6c4bd 100644 --- a/plugin.py +++ b/plugin.py @@ -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': '', diff --git a/templates/youtube-dl_list.html b/templates/youtube-dl_list.html index aa07530..061d3e0 100644 --- a/templates/youtube-dl_list.html +++ b/templates/youtube-dl_list.html @@ -39,9 +39,9 @@