From fd5207360522e5662d8c3802e452cdc52a8e7a6a Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 27 May 2023 20:20:07 +0100 Subject: [PATCH] Skip merging of HLS segments if `--skip-dl` is used Partially fixes #61 --- devine/core/manifests/hls.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devine/core/manifests/hls.py b/devine/core/manifests/hls.py index eaabf33..7d8bc99 100644 --- a/devine/core/manifests/hls.py +++ b/devine/core/manifests/hls.py @@ -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())