Sergey M․
4 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
2 changed files with
3 additions and
0 deletions
-
test/test_utils.py
-
youtube_dl/utils.py
|
|
@ -803,6 +803,8 @@ class TestUtil(unittest.TestCase): |
|
|
|
self.assertEqual(mimetype2ext('text/vtt'), 'vtt') |
|
|
|
self.assertEqual(mimetype2ext('text/vtt;charset=utf-8'), 'vtt') |
|
|
|
self.assertEqual(mimetype2ext('text/html; charset=utf-8'), 'html') |
|
|
|
self.assertEqual(mimetype2ext('audio/x-wav'), 'wav') |
|
|
|
self.assertEqual(mimetype2ext('audio/x-wav;codec=pcm'), 'wav') |
|
|
|
|
|
|
|
def test_month_by_name(self): |
|
|
|
self.assertEqual(month_by_name(None), None) |
|
|
|
|
|
@ -4198,6 +4198,7 @@ def mimetype2ext(mt): |
|
|
|
'vnd.ms-sstr+xml': 'ism', |
|
|
|
'quicktime': 'mov', |
|
|
|
'mp2t': 'ts', |
|
|
|
'x-wav': 'wav', |
|
|
|
}.get(res, res) |
|
|
|
|
|
|
|
|
|
|
|