diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-27 11:29:16 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-27 11:29:16 +0530 |
commit | 91dd88b90f52c4bdb250db22bca6928f2c7c5551 (patch) | |
tree | 02d008ecaf5e1121bc71299eba203840f8784a04 /yt_dlp/YoutubeDL.py | |
parent | d31dab70847aeedd9992f5921dfcf270e29b02ea (diff) |
[outtmpl] Alternate form of format type `l` for `\n` delimited list
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index a6eddd7f7..1cbe8dc8d 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1033,7 +1033,8 @@ class YoutubeDL(object): str_fmt = f'{fmt[:-1]}s' if fmt[-1] == 'l': # list - value, fmt = ', '.join(variadic(value)), str_fmt + delim = '\n' if '#' in (outer_mobj.group('conversion') or '') else ', ' + value, fmt = delim.join(variadic(value)), str_fmt elif fmt[-1] == 'j': # json value, fmt = json.dumps(value, default=_dumpjson_default), str_fmt elif fmt[-1] == 'q': # quoted |