Added:
- settings form - manga upload directory - ContentSource export/import
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user