aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-12-30 08:43:40 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-12-30 08:44:18 +0530
commitabbeeebc4c20bc5c690d96c83e91e89effd04b81 (patch)
tree4e7d0e862180de6818efad0d4f438a36c3bf36ea /test
parent2c539d493a4fa69ac89e77bacc7497e0b2d72426 (diff)
downloadhypervideo-pre-abbeeebc4c20bc5c690d96c83e91e89effd04b81.tar.lz
hypervideo-pre-abbeeebc4c20bc5c690d96c83e91e89effd04b81.tar.xz
hypervideo-pre-abbeeebc4c20bc5c690d96c83e91e89effd04b81.zip
[outtmpl] Alternate form for `D` and fix suffix's case
Fixes: https://github.com/yt-dlp/yt-dlp/issues/2085#issuecomment-1002247689, https://github.com/yt-dlp/yt-dlp/pull/2132/files#r775729811
Diffstat (limited to 'test')
-rw-r--r--test/test_YoutubeDL.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index 61923513e..d2cc423d6 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -645,6 +645,7 @@ class TestYoutubeDL(unittest.TestCase):
'ext': 'mp4',
'width': None,
'height': 1080,
+ 'filesize': 1024,
'title1': '$PATH',
'title2': '%PATH%',
'title3': 'foo/bar\\test',
@@ -778,8 +779,9 @@ class TestYoutubeDL(unittest.TestCase):
test('%(title5)#U', 'a\u0301e\u0301i\u0301 𝐀')
test('%(title5)+U', 'áéí A')
test('%(title5)+#U', 'a\u0301e\u0301i\u0301 A')
- test('%(height)D', '1K')
- test('%(height)5.2D', ' 1.08K')
+ test('%(height)D', '1k')
+ test('%(filesize)#D', '1Ki')
+ test('%(height)5.2D', ' 1.08k')
test('%(title4)#S', 'foo_bar_test')
test('%(title4).10S', ('foo \'bar\' ', 'foo \'bar\'' + ('#' if compat_os_name == 'nt' else ' ')))
if compat_os_name == 'nt':