debug(sonarr): Log all available Sonarr queue fields
All checks were successful
All checks were successful
Shows title, sourceTitle, series.title, episode.title for each Sonarr queue item to understand the data structure.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user