v1.4.2 --rm-cache-dir 옵션 추가

--rm-cache-dir 옵션 추가
플러그인 최초 설치 시 작동 안 되는 문제 수정
This commit is contained in:
joyfuI
2020-05-02 12:31:00 +09:00
parent edb354b2d6
commit 2801de603a
4 changed files with 11 additions and 4 deletions

View File

@@ -131,6 +131,10 @@ API에선 직접 비트레이트를 설정할 수 있습니다.
물론 해당 정보가 없으면 null입니다.
## Changelog
v1.4.2
* --rm-cache-dir 옵션 추가
* 플러그인 최초 설치 시 작동 안 되는 문제 수정
v1.4.1
* CORS 허용 설정 추가
Thanks to [dbswnschl](https://github.com/dbswnschl)

View File

@@ -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"}
{"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"}

View File

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

View File

@@ -34,7 +34,7 @@ menu = {
}
plugin_info = {
'version': '1.4.1',
'version': '1.4.2',
'name': 'youtube-dl',
'category_name': 'vod',
'developer': 'joyfuI',