diff --git a/src/Domain/Manga/Infrastructure/Provider/MangadexProvider.php b/src/Domain/Manga/Infrastructure/Provider/MangadexProvider.php index 52e63dc..859dcdf 100644 --- a/src/Domain/Manga/Infrastructure/Provider/MangadexProvider.php +++ b/src/Domain/Manga/Infrastructure/Provider/MangadexProvider.php @@ -58,7 +58,12 @@ readonly class MangadexProvider implements MangaProviderInterface { try { $attributes = $result['attributes']; - $title = $attributes['title']['en'] ?? null; + $title = $attributes['title']['en'] + ?? $attributes['title']['fr'] + ?? $attributes['title']['ja-ro'] + ?? $attributes['title']['ko-ro'] + ?? $attributes['title']['zh-ro'] + ?? (!empty($attributes['title']) ? reset($attributes['title']) : null); if (!$title) { return null; @@ -77,7 +82,7 @@ readonly class MangadexProvider implements MangaProviderInterface } if ($relationship['type'] === 'cover_art') { $imageUrl = sprintf( - 'https://mangadex.org/covers/%s/%s', + 'https://uploads.mangadex.org/covers/%s/%s.512.jpg', $result['id'], $relationship['attributes']['fileName'] );