Pass to yt_dlp a chapter-specific output template

When a FFmpegSplitChapters postprocessor is used it is taken into account, in all other cases the default output template is used.
This commit is contained in:
georgekav
2022-06-06 20:47:13 +02:00
parent 2e6658ce49
commit 712dc4ddbb
2 changed files with 7 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ class Config:
'STATE_DIR': '.',
'URL_PREFIX': '',
'OUTPUT_TEMPLATE': '%(title)s.%(ext)s',
'OUTPUT_TEMPLATE_CHAPTER': '%(title)s - %(section_number)s %(section_title)s.%(ext)s',
'YTDL_OPTIONS': '{}',
}