Skip to content

Commit

Permalink
Fix book naming
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMendolia committed Sep 2, 2023
1 parent 0dcb021 commit 72a79c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/BookFileSystemManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ private function calculateFileName(Book $book): string
if (null !== $book->getSerie()) {
$expectedFilename .= $book->getSerie().' '.$book->getSerieIndex().' - ';
}
$expectedFilename .= $book->getTitle();
$expectedFilename .= $this->slugger->slug($book->getTitle());

return str_replace('/', '', $expectedFilename);
return $this->slugger->slug($expectedFilename);
}

public function getCalculatedFileName(Book $book): string
Expand Down

0 comments on commit 72a79c6

Please sign in to comment.