[outtmpl] Alternate form of format type l for \n delimited list

This commit is contained in:
pukkandan 2021-09-27 11:29:16 +05:30
parent d31dab7084
commit 91dd88b90f
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
4 changed files with 7 additions and 3 deletions

View file

@ -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))))