Skip to content

Commit

Permalink
Do not always extract
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Sep 19, 2023
1 parent dde0755 commit 2a5a29f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/BooksExtractCoverCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2a5a29f

Please sign in to comment.