From 2a5a29fc329f7adacd056dcf4c41a7ef304329b6 Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Tue, 19 Sep 2023 17:59:01 +0200 Subject: [PATCH] Do not always extract --- src/Command/BooksExtractCoverCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/BooksExtractCoverCommand.php b/src/Command/BooksExtractCoverCommand.php index d1a5b203..97e501d5 100644 --- a/src/Command/BooksExtractCoverCommand.php +++ b/src/Command/BooksExtractCoverCommand.php @@ -60,7 +60,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int /* @var Book $book */ $progressBar->advance(); - if ($force === true || $book->getImageFilename() === null || !$fs->exists($book->getImagePath().$book->getImageFilename())) { + if ($force === true || $book->getImageFilename() === null || !$fs->exists($this->fileSystemManager->getCoverDirectory().$book->getImagePath().$book->getImageFilename())) { try { $book = $this->fileSystemManager->extractCover($book); $this->entityManager->persist($book);