diff --git a/devine/core/manifests/dash.py b/devine/core/manifests/dash.py index 6bb534d..84f063e 100644 --- a/devine/core/manifests/dash.py +++ b/devine/core/manifests/dash.py @@ -568,7 +568,7 @@ class DASH: if download_sizes and (time_since > 5 or finished_threads == len(segments)): data_size = sum(download_sizes) - download_speed = data_size / time_since + download_speed = data_size / (time_since or 1) progress(downloaded=f"DASH {filesize.decimal(download_speed)}/s") last_speed_refresh = now download_sizes.clear() diff --git a/devine/core/manifests/hls.py b/devine/core/manifests/hls.py index bb34c8a..cb53175 100644 --- a/devine/core/manifests/hls.py +++ b/devine/core/manifests/hls.py @@ -413,7 +413,7 @@ class HLS: if download_sizes and (time_since > 5 or finished_threads == len(master.segments)): data_size = sum(download_sizes) - download_speed = data_size / time_since + download_speed = data_size / (time_since or 1) progress(downloaded=f"HLS {filesize.decimal(download_speed)}/s") last_speed_refresh = now download_sizes.clear()