Browse Source

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

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
99081da90c
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/downloader/fragment.py

+ 1
- 1
youtube_dl/downloader/fragment.py View File

@ -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):


Loading…
Cancel
Save