mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-04-25 05:16:02 +00:00
new source : FrAnime (FR)
This commit is contained in:
@@ -15,9 +15,9 @@ searchManga(MangaModel manga) async {
|
||||
List<String> urls = [];
|
||||
List<String> images = [];
|
||||
if (res.startsWith("{")) {
|
||||
jsonList = MBridge.jsonPathToList(res, r'$.data[*]');
|
||||
jsonList = MBridge.jsonPathToList(res, r'$.data[*]', 0);
|
||||
} else {
|
||||
jsonList = MBridge.jsonDecodeToList(res);
|
||||
jsonList = MBridge.jsonDecodeToList(res,0);
|
||||
}
|
||||
for (var a in jsonList) {
|
||||
final thumbnail = MBridge.getMapValue(a, "thumbnail", 0);
|
||||
@@ -62,9 +62,9 @@ getPopularManga(MangaModel manga) async {
|
||||
List<String> urls = [];
|
||||
List<String> images = [];
|
||||
if (res.startsWith("{")) {
|
||||
jsonList = MBridge.jsonPathToList(res, r'$.data[*]');
|
||||
jsonList = MBridge.jsonPathToList(res, r'$.data[*]', 0);
|
||||
} else {
|
||||
jsonList = MBridge.jsonDecodeToList(res);
|
||||
jsonList = MBridge.jsonDecodeToList(res,0);
|
||||
}
|
||||
for (var a in jsonList) {
|
||||
final thumbnail = MBridge.getMapValue(a, "thumbnail", 0);
|
||||
@@ -109,9 +109,9 @@ getLatestUpdatesManga(MangaModel manga) async {
|
||||
List<String> urls = [];
|
||||
List<String> images = [];
|
||||
if (res.startsWith("{")) {
|
||||
jsonList = MBridge.jsonPathToList(res, r'$.data[*]');
|
||||
jsonList = MBridge.jsonPathToList(res, r'$.data[*]', 0);
|
||||
} else {
|
||||
jsonList = MBridge.jsonDecodeToList(res);
|
||||
jsonList = MBridge.jsonDecodeToList(res,0);
|
||||
}
|
||||
for (var a in jsonList) {
|
||||
final thumbnail = MBridge.getMapValue(a, "thumbnail", 0);
|
||||
@@ -147,7 +147,7 @@ getMangaDetail(MangaModel manga) async {
|
||||
manga.genre =
|
||||
MBridge.jsonPathToString(res, r"$.tags[*].name", "._").split("._");
|
||||
|
||||
final chapters = MBridge.jsonPathToList(res, r"$.chapters[*]");
|
||||
final chapters = MBridge.jsonPathToList(res, r"$.chapters[*]", 0);
|
||||
List<String> chapterTitles = [];
|
||||
List<String> chapterUrls = [];
|
||||
List<String> chapterDates = [];
|
||||
@@ -179,7 +179,7 @@ getChapterUrl(MangaModel manga) async {
|
||||
if (res.isEmpty) {
|
||||
return [];
|
||||
}
|
||||
final pages = MBridge.jsonPathToList(res, r"$.content.images[*]");
|
||||
final pages = MBridge.jsonPathToList(res, r"$.content.images[*]", 0);
|
||||
List<String> pageUrls = [];
|
||||
for (var u in pages) {
|
||||
final url = u.replaceAll('"', "");
|
||||
|
||||
@@ -195,7 +195,7 @@ getChapterUrl(MangaModel manga) async {
|
||||
if (pages.length == 1) {
|
||||
final images =
|
||||
MBridge.regExp(res, "\"images\"\\s*:\\s*(\\[.*?])", "", 1, 1);
|
||||
final pages = MBridge.jsonDecodeToList(images);
|
||||
final pages = MBridge.jsonDecodeToList(images,0);
|
||||
for (var page in pages) {
|
||||
pagesUrl.add(page);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ searchManga(MangaModel manga) async {
|
||||
if (res.isEmpty) {
|
||||
return manga;
|
||||
}
|
||||
final jsonList = MBridge.jsonPathToList(res, r'$.suggestions[*]');
|
||||
final jsonList = MBridge.jsonPathToList(res, r'$.suggestions[*]', 0);
|
||||
List<String> urls = [];
|
||||
List<String> names = [];
|
||||
List<String> images = [];
|
||||
|
||||
Reference in New Issue
Block a user