mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
add imageUrl for getDetail
This commit is contained in:
@@ -159,6 +159,11 @@ class MangaDex extends MProvider {
|
|||||||
headers: headers))
|
headers: headers))
|
||||||
.body;
|
.body;
|
||||||
MManga manga = MManga();
|
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}.256.jpg";
|
||||||
|
}
|
||||||
manga.author = jsonPathToString(
|
manga.author = jsonPathToString(
|
||||||
res, r'$..data.relationships[*].attributes.name', ', ');
|
res, r'$..data.relationships[*].attributes.name', ', ');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user