Skip merging of HLS segments if `--skip-dl` is used

Partially fixes #61
This commit is contained in:
rlaphoenix 2023-05-27 20:20:07 +01:00
parent 89f5e04348
commit fd52073605
1 changed files with 3 additions and 0 deletions

View File

@ -295,6 +295,9 @@ class HLS:
last_speed_refresh = now
download_sizes.clear()
if skip_event.is_set():
return
with open(save_path, "wb") as f:
for segment_file in sorted(save_dir.iterdir()):
f.write(segment_file.read_bytes())