diff --git a/README.md b/README.md index 5294bde..b816a57 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,9 @@ API를 제공합니다. 다른 플러그인에서 동영상 정보나 다운로 물론 해당 정보가 없으면 null입니다. ## Changelog +v3.0.1 +* 다운로드 후 파일 이동이 안되던 문제 수정 + v3.0.0 * SJVA3 대응 * SJVA에 flask_cors가 내장됨에 따라 항상 CORS 허용 diff --git a/info.json b/info.json index c7bfcc8..fcf8b36 100644 --- a/info.json +++ b/info.json @@ -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": ""} \ No newline at end of file +{"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": ""} \ No newline at end of file diff --git a/my_youtube_dl.py b/my_youtube_dl.py index d20deba..3699ffd 100644 --- a/my_youtube_dl.py +++ b/my_youtube_dl.py @@ -1,10 +1,10 @@ from __future__ import unicode_literals import os -import glob import traceback import tempfile import json +from glob import glob from datetime import datetime from threading import Thread from enum import Enum @@ -130,7 +130,7 @@ class MyYoutubeDL(object): with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download([self.url]) 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) if os.path.isdir(i): if not os.path.isdir(path): diff --git a/plugin.py b/plugin.py index 760945c..4faa1e1 100644 --- a/plugin.py +++ b/plugin.py @@ -36,7 +36,7 @@ menu = { } plugin_info = { - 'version': '3.0.0', + 'version': '3.0.1', 'name': 'youtube-dl', 'category_name': 'vod', 'developer': 'joyfuI',