mirror of
https://github.com/LucBerge/yt-dlp.git
synced 2025-03-17 19:57:52 +03:00
[outtmpl] Alternate form of format type l
for \n
delimited list
This commit is contained in:
parent
d31dab7084
commit
91dd88b90f
4 changed files with 7 additions and 3 deletions
|
@ -765,6 +765,7 @@ class TestYoutubeDL(unittest.TestCase):
|
|||
|
||||
# Custom type casting
|
||||
test('%(formats.:.id)l', 'id1, id2, id3')
|
||||
test('%(formats.:.id)#l', ('id1\nid2\nid3', 'id1 id2 id3'))
|
||||
test('%(ext)l', 'mp4')
|
||||
test('%(formats.:.id) 15l', ' id1, id2, id3')
|
||||
test('%(formats)j', (json.dumps(FORMATS), sanitize(json.dumps(FORMATS))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue