Update search to exclude returning series with no books #3736

This commit is contained in:
advplyr 2025-05-11 16:59:11 -05:00
parent 46ba342d49
commit d60ad96f8a

View File

@ -1195,10 +1195,12 @@ module.exports = {
libraryItem.media.series = [] libraryItem.media.series = []
return libraryItem.toOldJSON() return libraryItem.toOldJSON()
}) })
seriesMatches.push({ if (books.length) {
series: series.toOldJSON(), seriesMatches.push({
books series: series.toOldJSON(),
}) books
})
}
} }
// Search authors // Search authors