Добавлен поиск по типу файла

This commit is contained in:
Book Pauk
2023-03-17 12:45:13 +07:00
parent 6be1b94b96
commit d9e19ff9b7
4 changed files with 31 additions and 9 deletions

View File

@@ -450,6 +450,13 @@ export default class BaseList {
librateFound = searchLibrate.has(book.librate);
}
//ext
let extFound = !s.ext;
if (!extFound) {
const searchExt = new Set(s.ext.split('|'));
extFound = searchExt.has(book.ext.toLowerCase() || emptyFieldValue);
}
return (this.showDeleted || !book.del)
&& authorFound
&& filterBySearch(book.series, s.series)
@@ -458,6 +465,7 @@ export default class BaseList {
&& langFound
&& dateFound
&& librateFound
&& extFound
;
});
}