[openload] Improve ext extraction

This commit is contained in:
Enes 2018-06-01 20:16:22 +03:00 committed by Sergey M
parent 926d97fc6b
commit 85750f8972
3 changed files with 7 additions and 3 deletions

View file

@ -361,6 +361,7 @@ class TestUtil(unittest.TestCase):
self.assertEqual(determine_ext('http://example.com/foo/bar.nonext/?download', None), None)
self.assertEqual(determine_ext('http://example.com/foo/bar/mp4?download', None), None)
self.assertEqual(determine_ext('http://example.com/foo/bar.m3u8//?download'), 'm3u8')
self.assertEqual(determine_ext('foobar', None), None)
def test_find_xpath_attr(self):
testxml = '''<root>