일부 상황에서 다운로드가 완료로 표시되지 않는 문제 수정

This commit is contained in:
joyfuI
2020-10-05 18:17:47 +09:00
parent ab11ed47ac
commit 157e31cb71
4 changed files with 6 additions and 3 deletions

View File

@@ -120,7 +120,7 @@ class MyYoutubeDL(object):
ydl_opts.update(self.opts)
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download([self.url])
if self.status == Status.FINISHED: # 다운로드 성공
if self.status in (Status.START, Status.FINISHED): # 다운로드 성공
for i in glob2.glob(self.temp_path + '/**/*'):
path = i.replace(self.temp_path, self.save_path, 1)
if os.path.isdir(i):