d2a86932e0
Peer selection ranked (free-slot, advertised-speed, short-queue), ignoring file size. But Soulseek FLAC rips of one album vary ~2x in size (a 24-bit/bloated rip vs a standard CD rip) and Lyra scores them the SAME quality class (the slskd search exposes no bit-depth, so every FLAC is class 2). So a peer advertising high speed but serving 40MB/track files would out-rank a smaller standard rip that actually finishes sooner — then blow past the 60-min per-peer backstop, time out, fall through, and restart at 0% (Linkin Park "Hybrid Theory" looping for hours). Rank by estimated transfer time instead: album bytes ÷ advertised speed, after the free-slot check. Prefers whichever peer FINISHES first — fast peers and/or smaller standard-edition rips — with no quality loss (all class 2). Equal-size case still reduces to speed order, so existing ranking behaviour is preserved. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>