]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Added sanitization support for Hungarian letters Ő and Ű
authorbzc6p <bzc6p@users.noreply.github.com>
Thu, 2 Jun 2016 09:51:48 +0000 (11:51 +0200)
committerbzc6p <bzc6p@users.noreply.github.com>
Thu, 2 Jun 2016 09:51:48 +0000 (11:51 +0200)
youtube_dl/utils.py

index 26f21602c0a1162bdcef711d87c87fd35481fb3d..89234b39df9cdfe3edbce0420fee5ec5b67c4575 100644 (file)
@@ -105,9 +105,9 @@ KNOWN_EXTENSIONS = (
     'f4f', 'f4m', 'm3u8', 'smil')
 
 # needed for sanitizing filenames in restricted mode
-ACCENT_CHARS = dict(zip('ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØŒÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøœùúûüýþÿ',
-                        itertools.chain('AAAAAA', ['AE'], 'CEEEEIIIIDNOOOOOO', ['OE'], 'UUUUYP', ['ss'],
-                                        'aaaaaa', ['ae'], 'ceeeeiiiionoooooo', ['oe'], 'uuuuypy')))
+ACCENT_CHARS = dict(zip('ÂÃÄÀÁÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖŐØŒÙÚÛÜŰÝÞßàáâãäåæçèéêëìíîïðñòóôõöőøœùúûüűýþÿ',
+                        itertools.chain('AAAAAA', ['AE'], 'CEEEEIIIIDNOOOOOOO', ['OE'], 'UUUUUYP', ['ss'],
+                                        'aaaaaa', ['ae'], 'ceeeeiiiionooooooo', ['oe'], 'uuuuuypy')))
 
 
 def preferredencoding():