aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-07-22 07:52:55 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-07-22 08:57:43 +0530
commita264433c9fba147ecae2420091614186cfeeb895 (patch)
tree2a03d3e994bfc8801f990aed8dc5f63c237ec0d0 /test/test_YoutubeDL.py
parent9f66247289b9f8ecf931833b3f5f127274dd2161 (diff)
downloadhypervideo-pre-a264433c9fba147ecae2420091614186cfeeb895.tar.lz
hypervideo-pre-a264433c9fba147ecae2420091614186cfeeb895.tar.xz
hypervideo-pre-a264433c9fba147ecae2420091614186cfeeb895.zip
[outtmpl] Fix replacement for `playlist_index`
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r--test/test_YoutubeDL.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index b4f770ca5..c54c3ea5c 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -687,6 +687,7 @@ class TestYoutubeDL(unittest.TestCase):
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)