mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[utils] Transliterate "þ" as "th" (#20897)
Despite visual similarity "þ" is unrelated to "p".
It is normally transliterated as "th":
    $ echo þ-Þ | iconv -t ASCII//TRANSLIT
    th-TH
			
			
This commit is contained in:
		| @@ -183,7 +183,7 @@ class TestUtil(unittest.TestCase): | ||||
|  | ||||
|         self.assertEqual(sanitize_filename( | ||||
|             'ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖŐØŒÙÚÛÜŰÝÞßàáâãäåæçèéêëìíîïðñòóôõöőøœùúûüűýþÿ', restricted=True), | ||||
|             'AAAAAAAECEEEEIIIIDNOOOOOOOOEUUUUUYPssaaaaaaaeceeeeiiiionooooooooeuuuuuypy') | ||||
|             'AAAAAAAECEEEEIIIIDNOOOOOOOOEUUUUUYTHssaaaaaaaeceeeeiiiionooooooooeuuuuuythy') | ||||
|  | ||||
|     def test_sanitize_ids(self): | ||||
|         self.assertEqual(sanitize_filename('_n_cd26wFpw', is_id=True), '_n_cd26wFpw') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jakub Wilk
					Jakub Wilk