Skip to content

Commit

Permalink
Fixes #166 MangaDex crash on UpdateMetadata, needed to include cover_…
Browse files Browse the repository at this point in the history
…art in request
  • Loading branch information
C9Glax committed Apr 19, 2024
1 parent 54b24ac commit 13565d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tranga/MangaConnectors/MangaDex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public override Manga[] GetManga(string publicationTitle = "")
public override Manga? GetMangaFromId(string publicationId)
{
RequestResult requestResult =
downloadClient.MakeRequest($"https://api.mangadex.org/manga/{publicationId}", RequestType.MangaInfo);
downloadClient.MakeRequest($"https://api.mangadex.org/manga/{publicationId}?includes%5B%5D=manga&includes%5B%5D=cover_art&includes%5B%5D=author&includes%5B%5D=artist&includes%5B%5D=tag", RequestType.MangaInfo);
if ((int)requestResult.statusCode < 200 || (int)requestResult.statusCode >= 300)
return null;
JsonObject? result = JsonSerializer.Deserialize<JsonObject>(requestResult.result);
Expand Down

0 comments on commit 13565d1

Please sign in to comment.