mirror of
https://cdm-project.com/Download-Tools/devine.git
synced 2025-04-30 16:54:25 +02:00
HLS: Skip merging continuity if all segments were skipped
If all segments of a continuity is skipped, i.e. by OnSegmentFilter, then this code fails as the folder wouldn't exist.
This commit is contained in:
parent
cd194e3192
commit
bd185126b6
@ -325,6 +325,7 @@ class HLS:
|
|||||||
last_speed_refresh = now
|
last_speed_refresh = now
|
||||||
download_sizes.clear()
|
download_sizes.clear()
|
||||||
|
|
||||||
|
if discontinuity_save_dir.exists():
|
||||||
with open(discontinuity_save_path, "wb") as f:
|
with open(discontinuity_save_path, "wb") as f:
|
||||||
for segment_file in sorted(discontinuity_save_dir.iterdir()):
|
for segment_file in sorted(discontinuity_save_dir.iterdir()):
|
||||||
segment_data = segment_file.read_bytes()
|
segment_data = segment_file.read_bytes()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user