Поправки багов

This commit is contained in:
Book Pauk
2022-08-03 15:52:48 +07:00
parent ec8fbcdf38
commit 058c79570b
3 changed files with 5 additions and 2 deletions

View File

@@ -610,6 +610,9 @@ class Reader {
const checkSetTime = {};
//проставим новые размеры у книг
for (const book of sorted) {
if (book.deleted)
continue;
//размер 0 считаем отсутствующим
if (book.url && bucSize[book.url] && bucSize[book.url] !== book.bucSize) {
book.bucSize = bucSize[book.url];

View File

@@ -495,7 +495,7 @@ class BookManager {
if (item.sameBookKey !== undefined) {
const sorted = this.getSortedRecent();
for (const book of sorted) {
if (book.sameBookKey === item.sameBookKey)
if (!book.deleted && book.sameBookKey === item.sameBookKey)
updateItems.push(book);
}
} else {