v1.1.1 플레이리스트 다운로드 중 다운로드 실패한 동영상이 있으면 건너뛰도록 개선
This commit is contained in:
@@ -8,6 +8,9 @@ SJVA에서 유튜브, 네이버TV 등 동영상 사이트 영상을 다운로드
|
|||||||
다른 분들이 만든 플러그인을 참고하며 주먹구구식으로 만들었습니다;;
|
다른 분들이 만든 플러그인을 참고하며 주먹구구식으로 만들었습니다;;
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
v1.1.1
|
||||||
|
* 플레이리스트 다운로드 중 국가차단 등의 이유로 다운로드 실패한 동영상이 있으면 건너뛰도록 개선
|
||||||
|
|
||||||
v1.1.0
|
v1.1.0
|
||||||
* 화질 선택 기능 추가
|
* 화질 선택 기능 추가
|
||||||
* 잘못된 예외처리 수정
|
* 잘못된 예외처리 수정
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"more": "", "version": "1.1.0", "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"}
|
{"more": "", "version": "1.1.1", "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"}
|
||||||
@@ -93,7 +93,8 @@ class Youtube_dl(object):
|
|||||||
'logger': MyLogger(),
|
'logger': MyLogger(),
|
||||||
'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
|
||||||
}
|
}
|
||||||
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
|
||||||
@@ -125,6 +126,7 @@ class Youtube_dl(object):
|
|||||||
ydl_opts = {
|
ydl_opts = {
|
||||||
'simulate': True,
|
'simulate': True,
|
||||||
'dump_single_json': True,
|
'dump_single_json': True,
|
||||||
|
'extract_flat': 'in_playlist',
|
||||||
'logger': MyLogger()
|
'logger': MyLogger()
|
||||||
}
|
}
|
||||||
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ def plugin_unload():
|
|||||||
Logic.plugin_unload()
|
Logic.plugin_unload()
|
||||||
|
|
||||||
plugin_info = {
|
plugin_info = {
|
||||||
'version': '1.1.0',
|
'version': '1.1.1',
|
||||||
'name': 'youtube-dl',
|
'name': 'youtube-dl',
|
||||||
'category_name': 'vod',
|
'category_name': 'vod',
|
||||||
'icon': '',
|
'icon': '',
|
||||||
@@ -92,7 +92,8 @@ def detail(sub):
|
|||||||
#########################################################
|
#########################################################
|
||||||
# For UI
|
# For UI
|
||||||
#########################################################
|
#########################################################
|
||||||
@blueprint.route('/ajax/<sub>', methods=['GET', 'POST'])
|
@blueprint.route('/ajax/<sub>', methods=['POST'])
|
||||||
|
@login_required
|
||||||
def ajax(sub):
|
def ajax(sub):
|
||||||
logger.debug('AJAX %s %s', package_name, sub)
|
logger.debug('AJAX %s %s', package_name, sub)
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
{{ macros.setting_input_text('url', 'URL', placeholder='http:// 주소', desc='유튜브, 네이버TV 등 동영상 주소') }}
|
{{ macros.setting_input_text('url', 'URL', placeholder='http:// 주소', desc='유튜브, 네이버TV 등 동영상 주소') }}
|
||||||
{{ macros.setting_input_text('filename', '파일명', value=arg['file_name'], desc='템플릿 규칙은 https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template 참고') }}
|
{{ macros.setting_input_text('filename', '파일명', value=arg['file_name'], desc='템플릿 규칙은 https://github.com/ytdl-org/youtube-dl/blob/master/README.md#output-template 참고') }}
|
||||||
{{ macros.setting_select('preset', '동영상 포맷 프리셋', arg['preset_list'], col='3') }}
|
{{ macros.setting_select('preset', '동영상 포맷 프리셋', arg['preset_list'], col='3') }}
|
||||||
{{ macros.setting_input_text('format', '동영상 포맷', desc=['포맷 지정은 https://github.com/ytdl-org/youtube-dl/blob/master/README.md#format-selection 참고', '빈칸으로 설정 시 최고 화질로 다운로드합니다.']) }}
|
{{ macros.setting_input_text('format', '동영상 포맷', desc=['포맷 지정은 https://github.com/ytdl-org/youtube-dl/blob/master/README.md#format-selection 참고', '빈칸으로 두면 최고 화질로 다운로드합니다.']) }}
|
||||||
<!-- {{ macros.setting_select('merge_output_format', '파일 포맷', [['auto', '자동'], ['mkv', 'mkv'], ['mp4', 'mp4'], ['ogg', 'ogg'], ['webm', 'webm'], ['flv', 'flv']], col='3', value=arg['merge_output_format'], desc='병합이 필요한 경우 지정한 포맷으로 병합을 합니다.') }} -->
|
<!-- {{ macros.setting_select('merge_output_format', '파일 포맷', [['auto', '자동'], ['mkv', 'mkv'], ['mp4', 'mp4'], ['ogg', 'ogg'], ['webm', 'webm'], ['flv', 'flv']], col='3', value=arg['merge_output_format'], desc='병합이 필요한 경우 지정한 포맷으로 병합을 합니다.') }} -->
|
||||||
{{ macros.setting_button([['download_start', '다운로드']]) }}
|
{{ macros.setting_button([['download_start', '다운로드']]) }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user