1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-06-30 19:12:53 -05:00

[outtmpl] Pad playlist_index etc even when with internal formatting

Closes #7501
This commit is contained in:
pukkandan
2023-07-06 18:08:44 +05:30
parent 662ef1e910
commit 47bcd43724
2 changed files with 7 additions and 8 deletions

View File

@ -684,7 +684,7 @@ class TestYoutubeDL(unittest.TestCase):
test('%(id)s.%(ext)s', '1234.mp4')
test('%(duration_string)s', ('27:46:40', '27-46-40'))
test('%(resolution)s', '1080p')
test('%(playlist_index)s', '001')
test('%(playlist_index|)s', '001')
test('%(playlist_autonumber)s', '02')
test('%(autonumber)s', '00001')
test('%(autonumber+2)03d', '005', autonumber_start=3)