1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-06-27 19:55:26 +02:00

[downloader/fragment] Encode filename of fragment being removed (closes #15020)

This commit is contained in:
Sergey M․ 2017-12-18 03:31:53 +07:00
parent 7e81010987
commit 99081da90c
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -112,7 +112,7 @@ def _append_fragment(self, ctx, frag_content):
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):