From 72a79c615f46543a4c766d771f918341b44d871a Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Sat, 2 Sep 2023 18:40:56 +0200 Subject: [PATCH] Fix book naming --- src/Service/BookFileSystemManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/BookFileSystemManager.php b/src/Service/BookFileSystemManager.php index 2e876fc4..e48cb5d6 100644 --- a/src/Service/BookFileSystemManager.php +++ b/src/Service/BookFileSystemManager.php @@ -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