diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-18 01:40:21 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-18 17:12:20 +0530 |
commit | 5112f26a60ba1a7ee7ad6e884a5937553ebcceac (patch) | |
tree | 7f081082da17a0d243487cbd4ffe13e7de9e746f | |
parent | a06916d98e1669f9b7d821bcb3ca6d13bd6429fe (diff) | |
download | hypervideo-pre-5112f26a60ba1a7ee7ad6e884a5937553ebcceac.tar.lz hypervideo-pre-5112f26a60ba1a7ee7ad6e884a5937553ebcceac.tar.xz hypervideo-pre-5112f26a60ba1a7ee7ad6e884a5937553ebcceac.zip |
Add `pl_thumbnail` outtmpl key for playlist thumbnails
This should have been implemented in 681de68e9df67f07dde3fbbc6cb2e65a78b2bb16, but I forgot
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | yt_dlp/utils.py | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -885,7 +885,7 @@ To summarize, the general syntax for a field is: %(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: diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index b80a8cedb..27bdc50fe 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -4311,6 +4311,7 @@ OUTTMPL_TYPES = { 'description': 'description', 'annotation': 'annotations.xml', 'infojson': 'info.json', + 'pl_thumbnail': None, 'pl_description': 'description', 'pl_infojson': 'info.json', } |