Changes check for if a book is encrypted during migration
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good

This commit is contained in:
2025-09-10 00:48:15 +02:00
parent 56c33687e0
commit f4bcaf613d

View File

@@ -93,7 +93,6 @@ public class MigrationQueueThread implements Runnable {
if (bookMeta == null) {
return false;
}
String slash = BooksWithoutBorders.getConfiguration().getSlash();
EncryptedBook encryptedBook = null;
BookMeta loadedBook = null;
@@ -106,7 +105,7 @@ public class MigrationQueueThread implements Runnable {
}
// Attempt loading an encrypted book if necessary
if (file.getAbsolutePath().contains("Books" + slash + "Encrypted")) {
if (file.getAbsolutePath().contains(new File(BooksWithoutBorders.getConfiguration().getEncryptedBookPath()).getAbsolutePath())) {
encryptedBook = BookFileReaderWriterUtil.encryptedBookFromYml(file, bookMeta, "", true, true);
if (encryptedBook != null) {
loadedBook = encryptedBook.bookMeta();