1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-17 06:35:42 +07:00

[utils] Allow duration strings in filter

Closes #1309
This commit is contained in:
pukkandan
2021-10-17 01:04:00 +05:30
parent ec3f6640c1
commit 18f96d129b
2 changed files with 21 additions and 26 deletions

View File

@@ -1231,6 +1231,7 @@ def test_match_str(self):
self.assertFalse(match_str('x>2K', {'x': 1200}))
self.assertTrue(match_str('x>=1200 & x < 1300', {'x': 1200}))
self.assertFalse(match_str('x>=1100 & x < 1200', {'x': 1200}))
self.assertTrue(match_str('x > 1:0:0', {'x': 3700}))
# String
self.assertFalse(match_str('y=a212', {'y': 'foobar42'}))