Fix/mangadex #85
1 changed files with 5 additions and 0 deletions
|
|
@ -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', ', ');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue