Skip to content

Commit

Permalink
[downloader/fragment] Encode filename of fragment being removed (clos…
Browse files Browse the repository at this point in the history
…es #15020)
  • Loading branch information
Sergey M․ committed Dec 17, 2017
1 parent 7e81010 commit 99081da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/downloader/fragment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 99081da

Please sign in to comment.