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