v1.1.1 플레이리스트 다운로드 중 다운로드 실패한 동영상이 있으면 건너뛰도록 개선

This commit is contained in:
joyfuI
2020-02-12 20:33:48 +09:00
parent a190335de2
commit 6581394a6d
5 changed files with 11 additions and 5 deletions

View File

@@ -93,7 +93,8 @@ class Youtube_dl(object):
'logger': MyLogger(),
'progress_hooks': [self.my_hook],
# '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:
ydl_opts['format'] = self.format_code
@@ -125,6 +126,7 @@ class Youtube_dl(object):
ydl_opts = {
'simulate': True,
'dump_single_json': True,
'extract_flat': 'in_playlist',
'logger': MyLogger()
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl: