aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbzc6p <[email protected]>2016-06-02 11:51:48 +0200
committerbzc6p <[email protected]>2016-06-02 11:51:48 +0200
commitc88270271e65be591f7e194b71728256644b8684 (patch)
treeaf2563501de824f8fe5bc1169c9262623ce7ab69
parentb96f007eeb432cdd118fb4cfa027dfa36b0ea0f2 (diff)
downloadyoutube-dl-c88270271e65be591f7e194b71728256644b8684.tar.gz
youtube-dl-c88270271e65be591f7e194b71728256644b8684.zip
Added sanitization support for Hungarian letters Ő and Ű
-rw-r--r--youtube_dl/utils.py6
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():