mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[utils] Check ext with trailing slash against the list of known extensions
This commit is contained in:
		| @@ -242,6 +242,9 @@ class TestUtil(unittest.TestCase): | ||||
|     def test_determine_ext(self): | ||||
|         self.assertEqual(determine_ext('http://example.com/foo/bar.mp4/?download'), 'mp4') | ||||
|         self.assertEqual(determine_ext('http://example.com/foo/bar/?download', None), None) | ||||
|         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') | ||||
|  | ||||
|     def test_find_xpath_attr(self): | ||||
|         testxml = '''<root> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․