From 2801de603a2b63704889444eb18f0b9745f1667b Mon Sep 17 00:00:00 2001 From: joyfuI Date: Sat, 2 May 2020 12:31:00 +0900 Subject: [PATCH] =?UTF-8?q?v1.4.2=20--rm-cache-dir=20=EC=98=B5=EC=85=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --rm-cache-dir 옵션 추가 플러그인 최초 설치 시 작동 안 되는 문제 수정 --- README.md | 4 ++++ info.json | 2 +- my_youtube_dl.py | 7 +++++-- plugin.py | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f38cb64..969d6f5 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,10 @@ API에선 직접 비트레이트를 설정할 수 있습니다. 물론 해당 정보가 없으면 null입니다. ## Changelog +v1.4.2 +* --rm-cache-dir 옵션 추가 +* 플러그인 최초 설치 시 작동 안 되는 문제 수정 + v1.4.1 * CORS 허용 설정 추가 Thanks to [dbswnschl](https://github.com/dbswnschl) diff --git a/info.json b/info.json index 8728f53..8fecf9c 100644 --- a/info.json +++ b/info.json @@ -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.4.1", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"} \ No newline at end of file +{"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.4.2", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"} \ No newline at end of file diff --git a/my_youtube_dl.py b/my_youtube_dl.py index d3ca305..f258806 100644 --- a/my_youtube_dl.py +++ b/my_youtube_dl.py @@ -11,7 +11,6 @@ from datetime import datetime from enum import Enum # third-party -import youtube_dl # sjva 공용, 패키지 import framework.common.celery as celery_shutil @@ -87,6 +86,7 @@ class Youtube_dl(object): return True def run(self): + import youtube_dl import glob2 try: self.start_time = datetime.now() @@ -104,7 +104,8 @@ class Youtube_dl(object): 'progress_hooks': [self.my_hook], # 'match_filter': self.match_filter_func, 'outtmpl': os.path.join(self.temp_path, self.filename), - 'ignoreerrors': True + 'ignoreerrors': True, + 'cachedir': False } if self.format_code is not None: ydl_opts['format'] = self.format_code @@ -138,10 +139,12 @@ class Youtube_dl(object): @staticmethod def get_version(): + import youtube_dl return youtube_dl.version.__version__ @staticmethod def get_info_dict(url): + import youtube_dl try: ydl_opts = { 'simulate': True, diff --git a/plugin.py b/plugin.py index 8075a0b..301f7ab 100644 --- a/plugin.py +++ b/plugin.py @@ -34,7 +34,7 @@ menu = { } plugin_info = { - 'version': '1.4.1', + 'version': '1.4.2', 'name': 'youtube-dl', 'category_name': 'vod', 'developer': 'joyfuI',