Skip to content

Non-freeleech audiobooks wait for the target ratio; show narrators in the lists - #61

Merged
mikaeltarquin merged 2 commits into
mainfrom
claude/download-failed-oserror-oprsq0
Oct 4, 2026
Merged

mikaeltarquin merged 2 commits into
mainfrom
claude/download-failed-oserror-oprsq0

Conversation

@mikaeltarquin

Copy link
Copy Markdown
Owner

Summary

Non-freeleech audiobooks downloaded below "Keep Ratio At Least"

  • A non-freeleech download that would take the ratio below the target went anyway if it lowered the ratio by less than 0.01, an allowance meant for ebooks.
  • The drop scales with the account. At 92.27 GiB up / 73.35 GiB down (1.26), a 539 MB audiobook lowers the ratio by only 0.009, and anything up to about 600 MiB got through. Each was checked against the ratio the earlier ones had already lowered, so queued audiobooks went one after another.
  • The allowance now also needs the download to be ebook-sized (≤ 100 MB). The setting's description says so.

Narrators in the lists

  • Downloads, History and Up next show "Narrated by …" under the author (first narrator + count, all on hover), so audiobooks of the same book can be told apart.
  • The queue status now includes narrators. History reads them from the retry payload, so older rows show them too.

Testing

  • New tests:
    • The user's numbers: a 539 MB audiobook waits at 1.26 while a 5 MB ebook goes. It fails on the old rule.
    • Narrators in the queue status and history payload.
    • The frontend mapper.
  • Python (-m "not integration and not e2e"): only the same 5 environment failures as before.
  • Frontend: typecheck, oxlint, oxfmt, vitest (349).
  • Checked Up next in the app with test data.

🤖 Generated with Claude Code

https://claude.ai/code/session_01V88DbAixT45r3AJsyFJchY


Generated by Claude Code

claude added 2 commits October 4, 2026 08:47
A non-freeleech download that would take the ratio below "Keep Ratio At
Least" went anyway if it lowered the ratio by less than 0.01, an allowance
meant for ebooks. But the drop scales with the account: at 92.27 GiB up and
73.35 GiB down (1.26), a 539 MB audiobook lowers the ratio by only 0.009,
and anything up to about 600 MiB got through. Each was checked against the
ratio the ones before it had already lowered, so queued audiobooks went one
after another while the ratio sank below the target.

The allowance now also needs the download to be ebook-sized (100 MB or
less). Larger non-freeleech downloads wait until the ratio would stay at
the target, or they turn freeleech. The setting's description says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V88DbAixT45r3AJsyFJchY
Two audiobooks of the same book (Martin Jarvis's and the full cast's Good
Omens) looked the same in the lists. Each now has a "Narrated by" line
under its author, e.g. "Narrated by Bill Nighy +2", with every name on
hover. Ebooks, which have no narrators, are unchanged.

The queue status now includes a download's narrators. History takes them
from the data kept for a retry, so downloads recorded before this show
them too. Saved picks already name their narrators in the Releases column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V88DbAixT45r3AJsyFJchY
@mikaeltarquin
mikaeltarquin merged commit 5e8a09a into main Oct 4, 2026
7 checks passed
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.

2 participants