Skip to content

Fix put.io Finishing status not showing in downloads (#39)#46

Open
jchiotaka wants to merge 7 commits into
mainfrom
fix-putio-finishing-status
Open

Fix put.io Finishing status not showing in downloads (#39)#46
jchiotaka wants to merge 7 commits into
mainfrom
fix-putio-finishing-status

Conversation

@jchiotaka

@jchiotaka jchiotaka commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Fixes #39.

What

During put.io's finishing phase (torrent downloaded, files being copied into your storage) the download read as a stuck 100% instead of showing the real finishing progress.

Root cause

put.io pins percent_done at 100 once the torrent is downloaded, but keeps copying it into storage — that copy's progress lives in completion_percent, and put.io reports status: SEEDING (not COMPLETING) throughout.

Verified against the live account websocket + REST /transfers/list:

status: SEEDING, percent_done: 100, completion_percent: 45 → 46 → … → 100

(The SwaggerHub 2.8.14 schema omits completion_percent, but the REST endpoint does return it.)

The previous UI only showed the finishing % when status === 'COMPLETING' — which never happens — so it fell through to "Ready on Put.io · 100%".

Fix

downloadStatusText now keys the finishing phase off the data, not the status: when percent_done >= 100 && completion_percent < 100, show Finishing on Put.io · {completion_percent}%. Otherwise unchanged.

Notes for reviewer

  • completion_percent was already captured/stored end-to-end; only the display condition changed.
  • Possibly related (out of scope): the Start button / backend READY_REMOTE_STATUSES treat SEEDING as ready, but files aren't fully in storage until completion_percent hits 100 — starting a local download mid-finish could fetch incomplete files. Worth a follow-up.
  • All tests pass.

@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

🐳 PR container image

Pull the latest build of this PR:

docker pull ghcr.io/ptheofan/putiorr:pr-46

Immutable build for this commit: ghcr.io/ptheofan/putiorr:pr-46-2d86a9c

Rebuilt on every push; removed automatically when the PR closes. If the package is private, run docker login ghcr.io first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Putio status finishing not visible in putiorr

1 participant