1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-06-30 11:02:54 -05:00

[outtmpl] Fix replacement/default when used with alternate

This commit is contained in:
pukkandan
2022-03-26 07:39:36 +05:30
parent 6db9c4d57d
commit 34baa9fdf0
2 changed files with 8 additions and 5 deletions

View File

@ -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():