다운로드 후 파일 이동이 안되던 문제 수정
This commit is contained in:
@@ -199,6 +199,9 @@ API를 제공합니다. 다른 플러그인에서 동영상 정보나 다운로
|
|||||||
물론 해당 정보가 없으면 null입니다.
|
물론 해당 정보가 없으면 null입니다.
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
v3.0.1
|
||||||
|
* 다운로드 후 파일 이동이 안되던 문제 수정
|
||||||
|
|
||||||
v3.0.0
|
v3.0.0
|
||||||
* SJVA3 대응
|
* SJVA3 대응
|
||||||
* SJVA에 flask_cors가 내장됨에 따라 항상 CORS 허용
|
* SJVA에 flask_cors가 내장됨에 따라 항상 CORS 허용
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version": "3.0.0", "name": "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", "home": "https://github.com/joyfuI/youtube-dl", "more": ""}
|
{"version": "3.0.1", "name": "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", "home": "https://github.com/joyfuI/youtube-dl", "more": ""}
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import glob
|
|
||||||
import traceback
|
import traceback
|
||||||
import tempfile
|
import tempfile
|
||||||
import json
|
import json
|
||||||
|
from glob import glob
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
@@ -130,7 +130,7 @@ class MyYoutubeDL(object):
|
|||||||
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
|
||||||
ydl.download([self.url])
|
ydl.download([self.url])
|
||||||
if self.status in (Status.START, Status.FINISHED): # 다운로드 성공
|
if self.status in (Status.START, Status.FINISHED): # 다운로드 성공
|
||||||
for i in glob.glob(self.temp_path + '/**/*'):
|
for i in glob(self.temp_path + '/**/*', recursive=True):
|
||||||
path = i.replace(self.temp_path, self.save_path, 1)
|
path = i.replace(self.temp_path, self.save_path, 1)
|
||||||
if os.path.isdir(i):
|
if os.path.isdir(i):
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
|
|||||||
Reference in New Issue
Block a user