fix(DASH): Fix merge regression from recent commit

An else tree was used in 4d6c72ba30 when it shouldn't have been.

Fixes #81
This commit is contained in:
rlaphoenix 2024-03-09 17:52:50 +00:00
parent 1d5d4fd347
commit 35501bdb9c
1 changed files with 16 additions and 17 deletions

View File

@ -496,7 +496,6 @@ class DASH:
f.write(init_data) f.write(init_data)
if len(segments_to_merge) > 1: if len(segments_to_merge) > 1:
progress(downloaded="Merging", completed=0, total=len(segments_to_merge)) progress(downloaded="Merging", completed=0, total=len(segments_to_merge))
else:
for segment_file in segments_to_merge: for segment_file in segments_to_merge:
segment_data = segment_file.read_bytes() segment_data = segment_file.read_bytes()
# TODO: fix encoding after decryption? # TODO: fix encoding after decryption?