mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-23 20:29:37 +00:00
Update search to exclude returning series with no books #3736
This commit is contained in:
parent
46ba342d49
commit
d60ad96f8a
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue