]> jfr.im git - yt-dlp.git/commitdiff
Add `pl_thumbnail` outtmpl key for playlist thumbnails
authorpukkandan <redacted>
Mon, 17 May 2021 20:10:21 +0000 (01:40 +0530)
committerpukkandan <redacted>
Tue, 18 May 2021 11:42:20 +0000 (17:12 +0530)
This should have been implemented in 681de68e9df67f07dde3fbbc6cb2e65a78b2bb16, but I forgot

README.md
yt_dlp/utils.py

index 5e36b7ac0ea0ba1fb0dc5a42938ab34b9f93dd07..940b61c8e7d417ab3fe4fb2e1c90284c1d0eeb84 100644 (file)
--- a/README.md
+++ b/README.md
@@ -885,7 +885,7 @@ # OUTPUT TEMPLATE
 %(name[.keys][addition][>strf][|default])[flags][width][.precision][length]type
 ```
 
-Additionally, you can set different output templates for the various metadata files separately from the general output template by specifying the type of file followed by the template separated by a colon `:`. The different file types supported are `subtitle`, `thumbnail`, `description`, `annotation`, `infojson`, `pl_description`, `pl_infojson`, `chapter`. For example, `-o '%(title)s.%(ext)s' -o 'thumbnail:%(title)s\%(title)s.%(ext)s'`  will put the thumbnails in a folder with the same name as the video.
+Additionally, you can set different output templates for the various metadata files separately from the general output template by specifying the type of file followed by the template separated by a colon `:`. The different file types supported are `subtitle`, `thumbnail`, `description`, `annotation`, `infojson`, `pl_thumbnail`, `pl_description`, `pl_infojson`, `chapter`. For example, `-o '%(title)s.%(ext)s' -o 'thumbnail:%(title)s\%(title)s.%(ext)s'`  will put the thumbnails in a folder with the same name as the video.
 
 The available fields are:
 
index b80a8cedb319f11a08ab369f707f8727a27e89e8..27bdc50fe1f47e4789a17cda4940b6c9e879820a 100644 (file)
@@ -4311,6 +4311,7 @@ def q(qid):
     'description': 'description',
     'annotation': 'annotations.xml',
     'infojson': 'info.json',
+    'pl_thumbnail': None,
     'pl_description': 'description',
     'pl_infojson': 'info.json',
 }