From a5b127059b9c3cac74b5d0a1d7dbda33d458c97a Mon Sep 17 00:00:00 2001 From: meshr-net Date: Sat, 21 Feb 2015 22:18:54 +0300 Subject: [PATCH] Removing Non Ascii for Windows filenames windows can't save file names with Non Ascii characters --- youtube_dl/downloader/hls.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py index 8be4f4249..5a7ae214f 100644 --- a/youtube_dl/downloader/hls.py +++ b/youtube_dl/downloader/hls.py @@ -19,6 +19,7 @@ from ..utils import ( class HlsFD(FileDownloader): def real_download(self, filename, info_dict): url = info_dict['url'] + filename = ''.join([i if ord(i) < 128 else ' ' for i in filename]) self.report_destination(filename) tmpfilename = self.temp_name(filename)