aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-03-26 07:39:36 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-03-26 07:39:59 +0530
commit34baa9fdf050895c4a09107964d396079da5bb45 (patch)
tree48be48d04f1931e57db1a23ef75899512fe09f0d /test/test_YoutubeDL.py
parent6db9c4d57d033fb22c94a2e6f1ecf0207e700b4c (diff)
downloadhypervideo-pre-34baa9fdf050895c4a09107964d396079da5bb45.tar.lz
hypervideo-pre-34baa9fdf050895c4a09107964d396079da5bb45.tar.xz
hypervideo-pre-34baa9fdf050895c4a09107964d396079da5bb45.zip
[outtmpl] Fix replacement/default when used with alternate
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r--test/test_YoutubeDL.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index f9b40501d..c9108c5b6 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -818,6 +818,8 @@ class TestYoutubeDL(unittest.TestCase):
test('%(id&foo)s.bar', 'foo.bar')
test('%(title&foo)s.bar', 'NA.bar')
test('%(title&foo|baz)s.bar', 'baz.bar')
+ test('%(x,id&foo|baz)s.bar', 'foo.bar')
+ test('%(x,title&foo|baz)s.bar', 'baz.bar')
# Laziness
def gen():