diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-04-24 17:21:20 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-04-24 18:28:30 +0530 |
commit | 78fde6e3398ff11e5d383a66b28664badeab5180 (patch) | |
tree | 90c3b10013643a74227e4a4c2ff570051bc04b0b /test/test_YoutubeDL.py | |
parent | 80b732b7a9585b2a61e456dc0d2d014a439cbaee (diff) | |
download | hypervideo-pre-78fde6e3398ff11e5d383a66b28664badeab5180.tar.lz hypervideo-pre-78fde6e3398ff11e5d383a66b28664badeab5180.tar.xz hypervideo-pre-78fde6e3398ff11e5d383a66b28664badeab5180.zip |
[outtmpl] Allow `\n` in replacements and default.
Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510055357
Fixes: https://github.com/yt-dlp/yt-dlp/issues/6808#issuecomment-1510363645
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r-- | test/test_YoutubeDL.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py index 8da1e5e4b..49ae9e2b1 100644 --- a/test/test_YoutubeDL.py +++ b/test/test_YoutubeDL.py @@ -822,6 +822,7 @@ class TestYoutubeDL(unittest.TestCase): 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') + test('%(title&\n|)s', '\n') # Laziness def gen(): |