forked from DRMTalks/devine
Skip merging of HLS segments if `--skip-dl` is used
Partially fixes #61
This commit is contained in:
parent
89f5e04348
commit
fd52073605
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue