diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-12-18 03:31:53 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-12-18 03:31:53 +0700 |
commit | 99081da90c9b8ce4ee7fe9452787507fed4251a0 (patch) | |
tree | 75d7be43285505771de55f32337a1009712ac936 /youtube_dl/downloader/fragment.py | |
parent | 7e810109877bb59d213574b115e46d9621db9a18 (diff) |
[downloader/fragment] Encode filename of fragment being removed (closes #15020)
Diffstat (limited to 'youtube_dl/downloader/fragment.py')
-rw-r--r-- | youtube_dl/downloader/fragment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/fragment.py b/youtube_dl/downloader/fragment.py index 7bb61a541..ea5e3a4b5 100644 --- a/youtube_dl/downloader/fragment.py +++ b/youtube_dl/downloader/fragment.py @@ -112,7 +112,7 @@ class FragmentFD(FileDownloader): if self.__do_ytdl_file(ctx): self._write_ytdl_file(ctx) if not self.params.get('keep_fragments', False): - os.remove(ctx['fragment_filename_sanitized']) + os.remove(encodeFilename(ctx['fragment_filename_sanitized'])) del ctx['fragment_filename_sanitized'] def _prepare_frag_download(self, ctx): |