v1.4.2 --rm-cache-dir 옵션 추가
--rm-cache-dir 옵션 추가 플러그인 최초 설치 시 작동 안 되는 문제 수정
This commit is contained in:
@@ -131,6 +131,10 @@ API에선 직접 비트레이트를 설정할 수 있습니다.
|
|||||||
물론 해당 정보가 없으면 null입니다.
|
물론 해당 정보가 없으면 null입니다.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
v1.4.2
|
||||||
|
* --rm-cache-dir 옵션 추가
|
||||||
|
* 플러그인 최초 설치 시 작동 안 되는 문제 수정
|
||||||
|
|
||||||
v1.4.1
|
v1.4.1
|
||||||
* CORS 허용 설정 추가
|
* CORS 허용 설정 추가
|
||||||
Thanks to [dbswnschl](https://github.com/dbswnschl)
|
Thanks to [dbswnschl](https://github.com/dbswnschl)
|
||||||
|
|||||||
@@ -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"}
|
||||||
@@ -11,7 +11,6 @@ from datetime import datetime
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
# third-party
|
# third-party
|
||||||
import youtube_dl
|
|
||||||
|
|
||||||
# sjva 공용, 패키지
|
# sjva 공용, 패키지
|
||||||
import framework.common.celery as celery_shutil
|
import framework.common.celery as celery_shutil
|
||||||
@@ -87,6 +86,7 @@ class Youtube_dl(object):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
import youtube_dl
|
||||||
import glob2
|
import glob2
|
||||||
try:
|
try:
|
||||||
self.start_time = datetime.now()
|
self.start_time = datetime.now()
|
||||||
@@ -104,7 +104,8 @@ class Youtube_dl(object):
|
|||||||
'progress_hooks': [self.my_hook],
|
'progress_hooks': [self.my_hook],
|
||||||
# 'match_filter': self.match_filter_func,
|
# 'match_filter': self.match_filter_func,
|
||||||
'outtmpl': os.path.join(self.temp_path, self.filename),
|
'outtmpl': os.path.join(self.temp_path, self.filename),
|
||||||
'ignoreerrors': True
|
'ignoreerrors': True,
|
||||||
|
'cachedir': False
|
||||||
}
|
}
|
||||||
if self.format_code is not None:
|
if self.format_code is not None:
|
||||||
ydl_opts['format'] = self.format_code
|
ydl_opts['format'] = self.format_code
|
||||||
@@ -138,10 +139,12 @@ class Youtube_dl(object):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_version():
|
def get_version():
|
||||||
|
import youtube_dl
|
||||||
return youtube_dl.version.__version__
|
return youtube_dl.version.__version__
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_info_dict(url):
|
def get_info_dict(url):
|
||||||
|
import youtube_dl
|
||||||
try:
|
try:
|
||||||
ydl_opts = {
|
ydl_opts = {
|
||||||
'simulate': True,
|
'simulate': True,
|
||||||
|
|||||||
Reference in New Issue
Block a user