Skip to content

Commit

Permalink
fix(HLS): Delete video/audio segments after FFmpeg merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed Mar 24, 2024
1 parent 774fec6 commit d9873da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions devine/core/manifests/hls.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ def merge_segments(segments: list[Path], save_path: Path) -> int:
])
demuxer_file.unlink()

for segment in segments:
segment.unlink()

return save_path.stat().st_size

@staticmethod
Expand Down

0 comments on commit d9873da

Please sign in to comment.