From b27bf655f2f4ba1adaf172599683e8c45e33c534 Mon Sep 17 00:00:00 2001 From: projectdx Date: Tue, 6 Jan 2026 22:15:00 +0900 Subject: [PATCH] Fix: Pass template as outtmpl, not filename, to GDM to fix title issue --- mod_basic.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: