]> jfr.im git - yt-dlp.git/blobdiff - youtube_dlc/utils.py
Multiple output templates for different file types
[yt-dlp.git] / youtube_dlc / utils.py
index be27a562243bb4c897538df63f3e23a149ca89d2..987f4bcc084536a51c7b08beaeb1b1a523e9dc8f 100644 (file)
@@ -4169,7 +4169,18 @@ def q(qid):
     return q
 
 
-DEFAULT_OUTTMPL = '%(title)s [%(id)s].%(ext)s'
+DEFAULT_OUTTMPL = {
+    'default': '%(title)s [%(id)s].%(ext)s',
+}
+OUTTMPL_TYPES = {
+    'subtitle': None,
+    'thumbnail': None,
+    'description': 'description',
+    'annotation': 'annotations.xml',
+    'infojson': 'info.json',
+    'pl_description': 'description',
+    'pl_infojson': 'info.json',
+}
 
 
 def limit_length(s, length):