fix: ensure HLS download shows progress > 0
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -71,6 +71,10 @@ def _make_hook(task_id: str):
|
|||||||
done_pct = int(sum(PHASE_WEIGHTS[:state["phase"]]) * 100)
|
done_pct = int(sum(PHASE_WEIGHTS[:state["phase"]]) * 100)
|
||||||
_download_progress[task_id] = min(done_pct, 99)
|
_download_progress[task_id] = min(done_pct, 99)
|
||||||
|
|
||||||
|
# Ensure at least 1% progress so UI shows activity
|
||||||
|
if _download_progress.get(task_id, 0) == 0:
|
||||||
|
_download_progress[task_id] = 1
|
||||||
|
|
||||||
return hook
|
return hook
|
||||||
|
|
||||||
VIDEO_BASE_PATH = os.getenv("VIDEO_BASE_PATH", "/home/xdl/xdl_videos")
|
VIDEO_BASE_PATH = os.getenv("VIDEO_BASE_PATH", "/home/xdl/xdl_videos")
|
||||||
|
|||||||
Reference in New Issue
Block a user