Add:Alternate bookshelf view show sorting/filtering keys and ignore The prefix title #232 #361

This commit is contained in:
advplyr committed 2022-02-14 16:01:53 -06:00
1 parent f15be4c96e
commit 3be32a2813
5 files changed
+51 -12

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ class LibraryController {
var sortingIgnorePrefix = this.db.serverSettings.sortingIgnorePrefix
series = sort(series).asc(s => {
if (sortingIgnorePrefix && s.name.toLowerCase().startsWith('the')) {
if (sortingIgnorePrefix && s.name.toLowerCase().startsWith('the ')) {
return s.name.substr(4)
}
return s.name