Changes check for if a book is encrypted during migration
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good
All checks were successful
EpicKnarvik97/Books-Without-Borders/pipeline/head This commit looks good
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user