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 @@