This commit is contained in:
kodjomoustapha
2023-10-24 21:28:23 +01:00
parent 9739a8720e
commit 6eac32b58c
39 changed files with 457 additions and 953 deletions

View File

@@ -1,7 +1,7 @@
import 'dart:convert';
import 'package:bridge_lib/bridge_lib.dart';
getPopularManga(MangaModel manga) async {
getPopularManga(MManga manga) async {
final data = {"url": "${manga.baseUrl}/search/"};
final res = await MBridge.http('GET', json.encode(data));
if (res.isEmpty) {
@@ -13,7 +13,7 @@ getPopularManga(MangaModel manga) async {
return parseDirectory(resSort, manga);
}
getLatestUpdatesManga(MangaModel manga) async {
getLatestUpdatesManga(MManga manga) async {
final data = {"url": "${manga.baseUrl}/search/"};
final res = await MBridge.http('GET', json.encode(data));
if (res.isEmpty) {
@@ -25,7 +25,7 @@ getLatestUpdatesManga(MangaModel manga) async {
return parseDirectory(resSort, manga);
}
searchManga(MangaModel manga) async {
searchManga(MManga manga) async {
final data = {"url": "${manga.baseUrl}/search/"};
final res = await MBridge.http('GET', json.encode(data));
if (res.isEmpty) {
@@ -45,7 +45,7 @@ searchManga(MangaModel manga) async {
return parseDirectory(json.encode(queryRes), manga);
}
getMangaDetail(MangaModel manga) async {
getMangaDetail(MManga manga) async {
final statusList = [
{"Ongoing": 0, "Completed": 1, "Cancelled": 3, "Hiatus": 2}
];
@@ -94,7 +94,7 @@ getMangaDetail(MangaModel manga) async {
return manga;
}
getChapterUrl(MangaModel manga) async {
getChapterPages(MManga manga) async {
final headers = getHeader(manga.baseUrl);
final url = '${manga.baseUrl}${manga.link}';
List<String> pages = [];
@@ -164,7 +164,7 @@ String directoryFromDocument(String res) {
.replaceAll(";", " ");
}
MangaModel parseDirectory(String resSort, MangaModel manga) {
MManga parseDirectory(String resSort, MManga manga) {
final datas = json.decode(resSort) as List;
manga.names = datas.map((e) => e["s"]).toList();
manga.images = datas

View File

@@ -1,7 +1,7 @@
import '../../../model/source.dart';
import '../../../utils/utils.dart';
const nepnepVersion = "0.0.1";
const nepnepVersion = "0.0.2";
const nepnepSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/multisrc/nepnep/nepnep-v$nepnepVersion.dart";
const defaultDateFormat = "yyyy-MM-dd HH:mm:ss";
@@ -18,7 +18,6 @@ List<Source> _nepnepSourcesList = [
dateFormat: defaultDateFormat,
dateFormatLocale: defaultDateFormatLocale,
version: nepnepVersion,
appMinVerReq: "0.0.5",
sourceCodeUrl: nepnepSourceCodeUrl,
),
Source(
@@ -30,7 +29,6 @@ List<Source> _nepnepSourcesList = [
dateFormat: defaultDateFormat,
dateFormatLocale: defaultDateFormatLocale,
version: nepnepVersion,
appMinVerReq: "0.0.5",
sourceCodeUrl: nepnepSourceCodeUrl,
),
];