debug: Add Sonarr queue titles to no-match output
All checks were successful
All checks were successful
This commit is contained in:
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user