- settings form
- manga upload directory
- ContentSource export/import
This commit is contained in:
Jérémy Guillot
2024-07-25 21:05:09 +02:00
parent 07675fddf1
commit 21b2adfa07
22 changed files with 547 additions and 179 deletions

View File

@@ -222,6 +222,9 @@ class MangaController extends AbstractController
}
/**
* @throws GuzzleException
*/
#[Route('/addManga', name: 'app_manga_add')]
public function addManga(Request $request): Response
{
@@ -248,8 +251,8 @@ class MangaController extends AbstractController
$imageUrls = $this->processAndSaveImage($imageUrl);
$manga->setImageUrl($imageUrls['full']);
$manga->setThumbnailUrl($imageUrls['thumbnail']);
} catch (\Exception $e) {
// Gérer l'exception (par exemple, logger l'erreur)
} catch (\Exception|GuzzleException $e) {
throw $e;
}
$mergedChapters = $this->mangadexProvider->addAllChaptersToManga($manga);