diff options
author | georgekav <> | 2022-06-06 20:47:13 +0200 |
---|---|---|
committer | georgekav <> | 2022-06-06 20:47:13 +0200 |
commit | 712dc4ddbbb1d4d172f5f00d75a1cae33d45c09f (patch) | |
tree | 3f841eb47f5c3945848247b2738dea842e790694 /app/main.py | |
parent | Use paths parameters from yt_dlp for passing the path instead of making it pa... (diff) | |
download | metube-712dc4ddbbb1d4d172f5f00d75a1cae33d45c09f.tar.gz metube-712dc4ddbbb1d4d172f5f00d75a1cae33d45c09f.tar.bz2 metube-712dc4ddbbb1d4d172f5f00d75a1cae33d45c09f.zip |
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.
Diffstat (limited to 'app/main.py')
-rw-r--r-- | app/main.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/main.py b/app/main.py index 36c0e94..9fbdf19 100644 --- a/app/main.py +++ b/app/main.py @@ -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': '{}',
}
|