From 530390089c5d12b2940345e90bb3e9bf23e69199 Mon Sep 17 00:00:00 2001 From: ookami125 Date: Tue, 23 Jun 2026 20:59:06 -0400 Subject: [PATCH] webui: send article/result title with RSS manual downloads So the daemon names the torrent after the feed article or search result instead of the temp upload filename. Co-Authored-By: Claude Opus 4.8 --- public/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 56d4204..a82d633 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1010,7 +1010,7 @@ async function renderRssView(host, seq) { })); host.querySelectorAll('.dl-art').forEach((b) => b.addEventListener('click', () => guard(async () => { const a = articles[+b.dataset.art]; - await api.rssDownload({ magnet: a.magnet || '', torrentUrl: a.torrentUrl || a.link || '', key: a.key || '' }); + await api.rssDownload({ title: a.title || '', magnet: a.magnet || '', torrentUrl: a.torrentUrl || a.link || '', key: a.key || '' }); b.textContent = '✓ Added'; b.disabled = true; }, 'Failed to add torrent'))); host.querySelectorAll('[data-rule-edit]').forEach((b) => b.addEventListener('click', () => @@ -1432,7 +1432,7 @@ function bindSearchRows() { document.querySelectorAll('[data-sr]').forEach((b) => b.addEventListener('click', () => guard(async () => { const r = state.searchResults[+b.dataset.sr]; - await api.rssDownload({ magnet: r.magnet || '', torrentUrl: r.torrentUrl || '' }); + await api.rssDownload({ title: r.name || '', magnet: r.magnet || '', torrentUrl: r.torrentUrl || '' }); b.textContent = '✓ Added'; b.disabled = true; }, 'Failed to add torrent'))); }