diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-18 16:21:38 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-18 16:41:01 +0530 |
commit | 7c37ff97d3b95444ece7e7da2da6f03293003df3 (patch) | |
tree | 98ab5f4a7a064b7ef1873114ae935700b0952b99 /test/test_YoutubeDL.py | |
parent | d47f46e17e8611d6bad81b1cae3cc076385a6283 (diff) | |
download | hypervideo-pre-7c37ff97d3b95444ece7e7da2da6f03293003df3.tar.lz hypervideo-pre-7c37ff97d3b95444ece7e7da2da6f03293003df3.tar.xz hypervideo-pre-7c37ff97d3b95444ece7e7da2da6f03293003df3.zip |
Allow alternate fields in outtmpl
Closes #899, #1004
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r-- | test/test_YoutubeDL.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index e61492ec8..210bf441c 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -790,6 +790,12 @@ class TestYoutubeDL(unittest.TestCase): test('%(formats.0.id.-1+id)f', '1235.000000') test('%(formats.0.id.-1+formats.1.id.-1)d', '3') + # Alternates + test('%(title,id)s', '1234') + test('%(width-100,height+20|def)d', '1100') + test('%(width-100,height+width|def)s', 'def') + test('%(timestamp-x>%H\\,%M\\,%S,timestamp>%H\\,%M\\,%S)s', '12,00,00') + # Laziness def gen(): yield from range(5) |