download API에서 filename 키가 적용되지 않는 문제 수정

This commit is contained in:
joyfuI
2020-10-09 19:16:22 +09:00
parent 432fc92f54
commit d80796ebb9
4 changed files with 7 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ menu = {
}
plugin_info = {
'version': '1.6.7',
'version': '1.6.8',
'name': 'youtube-dl',
'category_name': 'vod',
'developer': 'joyfuI',
@@ -202,7 +202,7 @@ def api(sub):
return LogicNormal.abort(ret, 2) # 잘못된 동영상 주소
if preferredcodec not in (None, 'best', 'mp3', 'aac', 'flac', 'm4a', 'opus', 'vorbis', 'wav'):
return LogicNormal.abort(ret, 5) # 허용되지 않은 값이 있음
if filename:
if not filename:
filename = LogicNormal.get_default_filename()
youtube_dl = LogicNormal.download(plugin=plugin,
url=url,