From f1d9de2a92641bb8be7abac05c07825c62320482 Mon Sep 17 00:00:00 2001 From: Gronod Date: Tue, 19 May 2026 22:04:11 +0100 Subject: [PATCH] debug(sonarr): Log all available Sonarr queue fields Shows title, sourceTitle, series.title, episode.title for each Sonarr queue item to understand the data structure. --- server/routes/dashboard.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/routes/dashboard.js b/server/routes/dashboard.js index 70efeea..877b46b 100644 --- a/server/routes/dashboard.js +++ b/server/routes/dashboard.js @@ -1039,8 +1039,11 @@ router.get('/stream', requireAuth, async (req, res) => { } else { console.log(`[SSE] ✗ No match for SAB: "${nzbNameLower.substring(0, 60)}"`); // Show actual Sonarr titles to debug matching - const sonarrTitles = sonarrQueue.data.records.slice(0, 5).map(r => (r.title || r.sourceTitle || 'NO_TITLE').substring(0, 50)); - console.log(`[SSE] Sonarr titles: ${sonarrTitles.join(' | ')}`); + const sonarrTitles = sonarrQueue.data.records.slice(0, 5).map(r => { + const fields = {title: r.title, sourceTitle: r.sourceTitle, seriesTitle: r.series?.title, episodeTitle: r.episode?.title}; + return JSON.stringify(fields).substring(0, 80); + }); + console.log(`[SSE] Sonarr fields: ${sonarrTitles.join(' | ')}`); } } if (sonarrMatch && sonarrMatch.seriesId) {