mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-28 03:30:37 +02:00
Fix:Library collapsed series to respect ignore prefixes setting #866
This commit is contained in:
parent
377ae7ab19
commit
06b8d1194c
6 changed files with 28 additions and 16 deletions
|
@ -190,7 +190,7 @@ class LibraryController {
|
|||
// When collapsing by series and sorting by title use the series name instead of the book title
|
||||
if (payload.mediaType === 'book' && payload.collapseseries && li.media.metadata.seriesName) {
|
||||
if (sortByTitle) {
|
||||
return li.media.metadata.seriesName
|
||||
return this.db.serverSettings.sortingIgnorePrefix ? li.media.metadata.seriesNameIgnorePrefix : li.media.metadata.seriesName
|
||||
} else {
|
||||
// When not sorting by title always show the collapsed series at the end
|
||||
return direction === 'desc' ? -1 : 'zzzz'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue