debug: Add Sonarr queue titles to no-match output
All checks were successful
Build and Push Docker Image / build (push) Successful in 49s
Licence Check / Licence compatibility and copyright header verification (push) Successful in 1m0s
CI / Security audit (push) Successful in 1m13s
CI / Tests & coverage (push) Successful in 1m29s

This commit is contained in:
2026-05-19 22:16:26 +01:00
parent 5dfe0b1216
commit 6c8c333c6a

View File

@@ -1082,6 +1082,11 @@ router.get('/stream', requireAuth, async (req, res) => {
console.log(`[SSE] ✗ No match for SAB: "${nzbNameLower.substring(0, 60)}"`); console.log(`[SSE] ✗ No match for SAB: "${nzbNameLower.substring(0, 60)}"`);
// Show counts // Show counts
console.log(`[SSE] Queue: ${sonarrQueue.data.records.length}, History: ${sonarrHistory.data.records.length}`); console.log(`[SSE] Queue: ${sonarrQueue.data.records.length}, History: ${sonarrHistory.data.records.length}`);
// Show Sonarr queue titles
if (sonarrQueue.data.records.length > 0) {
const queueTitles = sonarrQueue.data.records.slice(0, 3).map(r => (r.title || r.sourceTitle || 'NO_TITLE').substring(0, 40));
console.log(`[SSE] Queue titles: ${queueTitles.join(' | ')}`);
}
// Show history titles if there are any // Show history titles if there are any
if (sonarrHistory.data.records.length > 0) { if (sonarrHistory.data.records.length > 0) {
const histTitles = sonarrHistory.data.records.slice(0, 3).map(r => { const histTitles = sonarrHistory.data.records.slice(0, 3).map(r => {