Merge pull request #85 from Schnitzel5/fix/mangadex

Fix/mangadex
This commit is contained in:
Moustapha Kodjo Amadou
2024-09-26 09:10:11 +01:00
committed by GitHub

View File

@@ -159,6 +159,11 @@ class MangaDex extends MProvider {
headers: headers))
.body;
MManga manga = MManga();
final coverUrl = jsonPathToString(
res, r'$..data.relationships[*].attributes.fileName', '');
if (coverUrl != null) {
manga.imageUrl = "https://uploads.mangadex.org/covers/${url.replaceAll("/manga/", "")}/${coverUrl}";
}
manga.author = jsonPathToString(
res, r'$..data.relationships[*].attributes.name', ', ');