mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[utils] parse_resolution: Support width-only pattern (#13802)
				
					
				
			Authored by: doe1080
This commit is contained in:
		| @@ -1373,6 +1373,7 @@ class TestUtil(unittest.TestCase): | ||||
|         self.assertEqual(parse_resolution('pre_1920x1080_post'), {'width': 1920, 'height': 1080}) | ||||
|         self.assertEqual(parse_resolution('ep1x2'), {}) | ||||
|         self.assertEqual(parse_resolution('1920, 1080'), {'width': 1920, 'height': 1080}) | ||||
|         self.assertEqual(parse_resolution('1920w', lenient=True), {'width': 1920}) | ||||
| 
 | ||||
|     def test_parse_bitrate(self): | ||||
|         self.assertEqual(parse_bitrate(None), None) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 doe1080
					doe1080