new source : FrAnime (FR)

This commit is contained in:
kodjomoustapha
2023-07-30 03:03:19 +01:00
parent 9917734d61
commit ca67aa74ce
8 changed files with 454 additions and 22 deletions

View File

@@ -9,14 +9,14 @@ getLatestUpdatesManga(MangaModel manga) async {
if (res.isEmpty) {
return manga;
}
manga.names = MBridge.jsonPathToList(res, r'$.title');
List<String> ids = MBridge.jsonPathToList(res, r'$.hid');
manga.names = MBridge.jsonPathToList(res, r'$.title', 0);
List<String> ids = MBridge.jsonPathToList(res, r'$.hid', 0);
List<String> mangaUrls = [];
for (var id in ids) {
mangaUrls.add("/comic/$id/#");
}
manga.urls = mangaUrls;
manga.images = MBridge.jsonPathToList(res, r'$.cover_url');
manga.images = MBridge.jsonPathToList(res, r'$.cover_url', 0);
return manga;
}
@@ -88,14 +88,14 @@ getPopularManga(MangaModel manga) async {
if (res.isEmpty) {
return manga;
}
manga.names = MBridge.jsonPathToList(res, r'$.title');
List<String> ids = MBridge.jsonPathToList(res, r'$.hid');
manga.names = MBridge.jsonPathToList(res, r'$.title', 0);
List<String> ids = MBridge.jsonPathToList(res, r'$.hid', 0);
List<String> mangaUrls = [];
for (var id in ids) {
mangaUrls.add("/comic/$id/#");
}
manga.urls = mangaUrls;
manga.images = MBridge.jsonPathToList(res, r'$.cover_url');
manga.images = MBridge.jsonPathToList(res, r'$.cover_url', 0);
return manga;
}
@@ -106,14 +106,14 @@ searchManga(MangaModel manga) async {
if (res.isEmpty) {
return manga;
}
manga.names = MBridge.jsonPathToList(res, r'$.title');
List<String> ids = MBridge.jsonPathToList(res, r'$.hid');
manga.names = MBridge.jsonPathToList(res, r'$.title', 0);
List<String> ids = MBridge.jsonPathToList(res, r'$.hid', 0);
List<String> mangaUrls = [];
for (var id in ids) {
mangaUrls.add("/comic/$id/#");
}
manga.urls = mangaUrls;
manga.images = MBridge.jsonPathToList(res, r'$.cover_url');
manga.images = MBridge.jsonPathToList(res, r'$.cover_url', 0);
return manga;
}

View File

@@ -43,11 +43,11 @@ MangaModel getChapters(
String chapDate = MBridge.stringParse("");
String chapterUrl = MBridge.stringParse("");
String paginatedChapterList = MBridge.stringParse(paginatedChapterListA);
final dataList = MBridge.jsonPathToList(paginatedChapterList, r'$.data[*]');
final dataList = MBridge.jsonPathToList(paginatedChapterList, r'$.data[*]',0);
for (var res in dataList) {
String scan = MBridge.stringParse("");
final groups = MBridge.jsonPathToList(
res, r'$.relationships[?@.id!="00e03853-1b96-4f41-9542-c71b8692033b"]');
res, r'$.relationships[?@.id!="00e03853-1b96-4f41-9542-c71b8692033b"]',0);
String chapName = MBridge.stringParse("");
for (var element in groups) {
final data = MBridge.getMapValue(element, "attributes", 1);