[YoutubeDL] Raise syntax error for format selection expressions with multiple + operators (closes #27803)

This commit is contained in:
Sergey M․ 2021-01-14 00:37:51 +07:00
commit d81a213cfb
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
2 changed files with 3 additions and 0 deletions

View file

@ -464,6 +464,7 @@ class TestFormatSelection(unittest.TestCase):
assert_syntax_error('+bestaudio')
assert_syntax_error('bestvideo+')
assert_syntax_error('/')
assert_syntax_error('bestvideo+bestvideo+bestaudio')
def test_format_filtering(self):
formats = [