v1.1.1 플레이리스트 다운로드 중 다운로드 실패한 동영상이 있으면 건너뛰도록 개선
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user