diff options
author | bzc6p <[email protected]> | 2016-06-02 11:51:48 +0200 |
---|---|---|
committer | bzc6p <[email protected]> | 2016-06-02 11:51:48 +0200 |
commit | c88270271e65be591f7e194b71728256644b8684 (patch) | |
tree | af2563501de824f8fe5bc1169c9262623ce7ab69 | |
parent | b96f007eeb432cdd118fb4cfa027dfa36b0ea0f2 (diff) | |
download | youtube-dl-c88270271e65be591f7e194b71728256644b8684.tar.gz youtube-dl-c88270271e65be591f7e194b71728256644b8684.zip |
Added sanitization support for Hungarian letters Ő and Ű
-rw-r--r-- | youtube_dl/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 26f21602c..89234b39d 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -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(): |