diff --git a/mod_basic.py b/mod_basic.py index 482dc6c..ed0da95 100644 --- a/mod_basic.py +++ b/mod_basic.py @@ -158,14 +158,17 @@ class ModuleBasic(PluginModuleBase): # 상세 로그 확인을 위해 verbose 추가 가능 (디버깅용) # gdm_options['extra_args'] = gdm_options.get('extra_args', []) + ['--verbose'] + if req.form.get("filename"): + gdm_options['outtmpl'] = req.form["filename"] + # GDM 큐에 추가 task = ModuleQueue.add_download( url=req.form["url"], save_path=ToolUtil.make_path(P.ModelSetting.get("save_path")), - filename=req.form["filename"], + filename=None, # 템플릿 스트링이 제목/파일명으로 박히는 것 방지 (outtmpl로 전달) source_type='youtube', caller_plugin='youtube-dl', - title=req.form["url"], # 템플릿 스트링이 제목으로 나오는 것 방지 + title=req.form["url"], **gdm_options ) if task: