]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/utils.py
Split video by chapters (#158)
[yt-dlp.git] / yt_dlp / utils.py
index 77f8c0f4d454017b6f4ad0076bcbbb1ec53f29ef..a913b98149e22dfeaa5e949ed15ad68c0a6020c5 100644 (file)
@@ -4182,8 +4182,10 @@ def q(qid):
 
 DEFAULT_OUTTMPL = {
     'default': '%(title)s [%(id)s].%(ext)s',
+    'chapter': '%(title)s - %(section_number)03d %(section_title)s [%(id)s].%(ext)s',
 }
 OUTTMPL_TYPES = {
+    'chapter': None,
     'subtitle': None,
     'thumbnail': None,
     'description': 'description',