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

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

@@ -131,6 +131,9 @@ API에선 직접 비트레이트를 설정할 수 있습니다.
물론 해당 정보가 없으면 null입니다.
## Changelog
v1.6.7
* 일부 상황에서 다운로드가 완료로 표시되지 않는 문제 수정
v1.6.6
v1.6.5

View File

@@ -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.6.6", "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.6.7", "home": "https://github.com/joyfuI/youtube-dl", "category_name": "vod", "developer": "joyfuI"}

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):

View File

@@ -34,7 +34,7 @@ menu = {
}
plugin_info = {
'version': '1.6.6',
'version': '1.6.7',
'name': 'youtube-dl',
'category_name': 'vod',
'developer': 'joyfuI',