Fix: Pass template as outtmpl, not filename, to GDM to fix title issue
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user