mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[outtmpl] Format type U for unicode normalization
				
					
				
			This commit is contained in:
		| @@ -649,7 +649,7 @@ class TestYoutubeDL(unittest.TestCase): | ||||
|         'title2': '%PATH%', | ||||
|         'title3': 'foo/bar\\test', | ||||
|         'title4': 'foo "bar" test', | ||||
|         'title5': 'áéí', | ||||
|         'title5': 'áéí 𝐀', | ||||
|         'timestamp': 1618488000, | ||||
|         'duration': 100000, | ||||
|         'playlist_index': 1, | ||||
| @@ -769,6 +769,10 @@ class TestYoutubeDL(unittest.TestCase): | ||||
|         test('%(formats.:.id) 15l', '  id1, id2, id3') | ||||
|         test('%(formats)j', (json.dumps(FORMATS), sanitize(json.dumps(FORMATS)))) | ||||
|         test('%(title5).3B', 'á') | ||||
|         test('%(title5)U', 'áéí 𝐀') | ||||
|         test('%(title5)#U', 'a\u0301e\u0301i\u0301 𝐀') | ||||
|         test('%(title5)+U', 'áéí A') | ||||
|         test('%(title5)+#U', 'a\u0301e\u0301i\u0301 A') | ||||
|         if compat_os_name == 'nt': | ||||
|             test('%(title4)q', ('"foo \\"bar\\" test"', "'foo _'bar_' test'")) | ||||
|         else: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan