Others' downloads stay off your page (#294)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 18:12:55 +00:00
parent 7af6153d18
commit 995ee05557
2 changed files with 6 additions and 0 deletions

View File

@@ -23,6 +23,8 @@ function connect(){
const preloadSoon=soon(preloadLists,2000);
sse.onmessage=m=>{
let ev; try{ ev=JSON.parse(m.data) }catch{ return }
// Someone else's download is theirs: its file's name and its failure stay off this page (#294).
if((ev.ev==='progress'||ev.ev==='download_error')&&!mine(ev.feed)) return;
if(ev.ev==='progress'){
const pct=ev.total?ev.done/ev.total*100:0;
// Only the row actually downloading. Without the enclosure id this used to paint