mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
first commit
This commit is contained in:
3107
index.json
Normal file
3107
index.json
Normal file
File diff suppressed because it is too large
Load Diff
60
model/source.dart
Normal file
60
model/source.dart
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
class Source {
|
||||||
|
String? id;
|
||||||
|
String? name;
|
||||||
|
|
||||||
|
String? baseUrl;
|
||||||
|
|
||||||
|
String? lang;
|
||||||
|
|
||||||
|
bool? isNsfw;
|
||||||
|
|
||||||
|
String? sourceCodeUrl;
|
||||||
|
|
||||||
|
String? typeSource;
|
||||||
|
|
||||||
|
String? iconUrl;
|
||||||
|
|
||||||
|
bool? hasCloudflare;
|
||||||
|
|
||||||
|
String? dateFormat;
|
||||||
|
|
||||||
|
String? dateFormatLocale;
|
||||||
|
|
||||||
|
String? apiUrl;
|
||||||
|
|
||||||
|
String? version;
|
||||||
|
|
||||||
|
Source({
|
||||||
|
this.id = null,
|
||||||
|
this.name = "",
|
||||||
|
this.baseUrl = "",
|
||||||
|
this.lang = "",
|
||||||
|
this.typeSource = "",
|
||||||
|
this.iconUrl = "",
|
||||||
|
this.dateFormat,
|
||||||
|
this.dateFormatLocale,
|
||||||
|
this.isNsfw = false,
|
||||||
|
this.hasCloudflare = false,
|
||||||
|
this.sourceCodeUrl = "",
|
||||||
|
this.apiUrl = "",
|
||||||
|
this.version = "",
|
||||||
|
});
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
return {
|
||||||
|
'name': name,
|
||||||
|
'id': id ?? 'mangayomi-$lang.$name'.hashCode,
|
||||||
|
'baseUrl': baseUrl,
|
||||||
|
"lang": lang,
|
||||||
|
"typeSource": typeSource,
|
||||||
|
"iconUrl": iconUrl,
|
||||||
|
"dateFormat": dateFormat,
|
||||||
|
"dateFormatLocale": dateFormatLocale,
|
||||||
|
"isNsfw": isNsfw,
|
||||||
|
"hasCloudflare": hasCloudflare,
|
||||||
|
"sourceCodeUrl": sourceCodeUrl,
|
||||||
|
"apiUrl": apiUrl,
|
||||||
|
"version": version
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
203
multisrc/heancms/heancms-v0.0.1.dart
Normal file
203
multisrc/heancms/heancms-v0.0.1.dart
Normal file
@@ -0,0 +1,203 @@
|
|||||||
|
// import 'dart:convert';
|
||||||
|
// import 'package:bridge_lib/bridge_lib.dart';
|
||||||
|
|
||||||
|
// searchManga(MangaModel manga) async {
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.apiUrl}/series/search";
|
||||||
|
// final body = {"term": manga.query};
|
||||||
|
// final data = {"url": url, "headers": headers, "body": body};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 1);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// List<String> jsonList = [];
|
||||||
|
// List<String> names = [];
|
||||||
|
// List<String> urls = [];
|
||||||
|
// List<String> images = [];
|
||||||
|
// if (res.startsWith("{")) {
|
||||||
|
// jsonList = MBridge.jsonPathToList(res, r'$.data[*]');
|
||||||
|
// } else {
|
||||||
|
// jsonList = MBridge.jsonDecodeToList(res);
|
||||||
|
// }
|
||||||
|
// for (var a in jsonList) {
|
||||||
|
// final thumbnail = MBridge.getMapValue(a, "thumbnail", 0);
|
||||||
|
// if (thumbnail.startsWith("https://")) {
|
||||||
|
// images.add(thumbnail);
|
||||||
|
// } else {
|
||||||
|
// images.add("${manga.apiUrl}/cover/$thumbnail");
|
||||||
|
// }
|
||||||
|
// names.add(MBridge.getMapValue(a, "title", 0));
|
||||||
|
// final seriesSlug = MBridge.regExp(
|
||||||
|
// MBridge.getMapValue(a, "series_slug", 0), "-\\d+", "", 0, 0);
|
||||||
|
// urls.add("/series/$seriesSlug");
|
||||||
|
// }
|
||||||
|
// manga.urls = urls;
|
||||||
|
// manga.images = images;
|
||||||
|
// manga.names = names;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getPopularManga(MangaModel manga) async {
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.apiUrl}/series/querysearch";
|
||||||
|
// final body = {
|
||||||
|
// "page": manga.page,
|
||||||
|
// "order": "desc",
|
||||||
|
// "order_by": "total_views",
|
||||||
|
// "series_status": "Ongoing",
|
||||||
|
// "series_type": "Comic"
|
||||||
|
// };
|
||||||
|
// final data = {
|
||||||
|
// "url": url,
|
||||||
|
// "headers": headers,
|
||||||
|
// "sourceId": manga.sourceId,
|
||||||
|
// "body": body
|
||||||
|
// };
|
||||||
|
// final res = await MBridge.http(json.encode(data), 1);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// List<String> jsonList = [];
|
||||||
|
// List<String> names = [];
|
||||||
|
// List<String> urls = [];
|
||||||
|
// List<String> images = [];
|
||||||
|
// if (res.startsWith("{")) {
|
||||||
|
// jsonList = MBridge.jsonPathToList(res, r'$.data[*]');
|
||||||
|
// } else {
|
||||||
|
// jsonList = MBridge.jsonDecodeToList(res);
|
||||||
|
// }
|
||||||
|
// for (var a in jsonList) {
|
||||||
|
// final thumbnail = MBridge.getMapValue(a, "thumbnail", 0);
|
||||||
|
// if (thumbnail.startsWith("https://")) {
|
||||||
|
// images.add(thumbnail);
|
||||||
|
// } else {
|
||||||
|
// images.add("${manga.apiUrl}/cover/$thumbnail");
|
||||||
|
// }
|
||||||
|
// names.add(MBridge.getMapValue(a, "title", 0));
|
||||||
|
// final seriesSlug = MBridge.regExp(
|
||||||
|
// MBridge.getMapValue(a, "series_slug", 0), "-\\d+", "", 0, 0);
|
||||||
|
// urls.add("/series/$seriesSlug");
|
||||||
|
// }
|
||||||
|
// manga.urls = urls;
|
||||||
|
// manga.images = images;
|
||||||
|
// manga.names = names;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getLatestUpdatesManga(MangaModel manga) async {
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.apiUrl}/series/querysearch";
|
||||||
|
// final body = {
|
||||||
|
// "page": manga.page,
|
||||||
|
// "order": "desc",
|
||||||
|
// "order_by": "latest",
|
||||||
|
// "series_status": "Ongoing",
|
||||||
|
// "series_type": "Comic"
|
||||||
|
// };
|
||||||
|
// final data = {
|
||||||
|
// "url": url,
|
||||||
|
// "headers": headers,
|
||||||
|
// "sourceId": manga.sourceId,
|
||||||
|
// "body": body
|
||||||
|
// };
|
||||||
|
// final res = await MBridge.http(json.encode(data), 1);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// List<String> jsonList = [];
|
||||||
|
// List<String> names = [];
|
||||||
|
// List<String> urls = [];
|
||||||
|
// List<String> images = [];
|
||||||
|
// if (res.startsWith("{")) {
|
||||||
|
// jsonList = MBridge.jsonPathToList(res, r'$.data[*]');
|
||||||
|
// } else {
|
||||||
|
// jsonList = MBridge.jsonDecodeToList(res);
|
||||||
|
// }
|
||||||
|
// for (var a in jsonList) {
|
||||||
|
// final thumbnail = MBridge.getMapValue(a, "thumbnail", 0);
|
||||||
|
// if (thumbnail.startsWith("https://")) {
|
||||||
|
// images.add(thumbnail);
|
||||||
|
// } else {
|
||||||
|
// images.add("${manga.apiUrl}/cover/$thumbnail");
|
||||||
|
// }
|
||||||
|
// names.add(MBridge.getMapValue(a, "title", 0));
|
||||||
|
// final seriesSlug = MBridge.regExp(
|
||||||
|
// MBridge.getMapValue(a, "series_slug", 0), "-\\d+", "", 0, 0);
|
||||||
|
// urls.add("/series/$seriesSlug");
|
||||||
|
// }
|
||||||
|
// manga.urls = urls;
|
||||||
|
// manga.images = images;
|
||||||
|
// manga.names = names;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getMangaDetail(MangaModel manga) async {
|
||||||
|
// String currentSlug = MBridge.listParse(manga.link.split('/'), 2)[0];
|
||||||
|
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.apiUrl}/series/$currentSlug";
|
||||||
|
// final data = {"url": url, "headers": headers};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.author = MBridge.getMapValue(res, "author", 0);
|
||||||
|
|
||||||
|
// manga.description = MBridge.getMapValue(res, "description", 0);
|
||||||
|
// manga.genre =
|
||||||
|
// MBridge.jsonPathToString(res, r"$.tags[*].name", "._").split("._");
|
||||||
|
|
||||||
|
// final chapters = MBridge.jsonPathToList(res, r"$.chapters[*]");
|
||||||
|
// List<String> chapterTitles = [];
|
||||||
|
// List<String> chapterUrls = [];
|
||||||
|
// List<String> chapterDates = [];
|
||||||
|
// for (var chapter in chapters) {
|
||||||
|
// final chapterName = MBridge.getMapValue(chapter, "chapter_name", 0);
|
||||||
|
// final chapterSlug = MBridge.getMapValue(chapter, "chapter_slug", 0);
|
||||||
|
// final chapterId = MBridge.getMapValue(chapter, "id", 0);
|
||||||
|
// final createdAt = MBridge.getMapValue(chapter, "created_at", 0);
|
||||||
|
// chapterUrls.add("/series/$currentSlug/$chapterSlug#$chapterId");
|
||||||
|
// chapterTitles.add(chapterName);
|
||||||
|
// chapterDates.add(createdAt);
|
||||||
|
// }
|
||||||
|
// manga.urls = chapterUrls;
|
||||||
|
// manga.names = chapterTitles;
|
||||||
|
// manga.chaptersDateUploads = MBridge.listParse(
|
||||||
|
// MBridge.listParseDateTime(
|
||||||
|
// chapterDates, manga.dateFormat, manga.dateFormatLocale),
|
||||||
|
// 0);
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getChapterUrl(MangaModel manga) async {
|
||||||
|
// String chapterId = MBridge.listParse(manga.link.split('#'), 2)[0];
|
||||||
|
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.apiUrl}/series/chapter/$chapterId";
|
||||||
|
// final data = {"url": url, "headers": headers};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
// final pages = MBridge.jsonPathToList(res, r"$.content.images[*]");
|
||||||
|
// List<String> pageUrls = [];
|
||||||
|
// for (var u in pages) {
|
||||||
|
// final url = u.replaceAll('"', "");
|
||||||
|
// if (url.startsWith("http")) {
|
||||||
|
// pageUrls.add(url);
|
||||||
|
// } else {
|
||||||
|
// pageUrls.add("${manga.apiUrl}/$url");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// return pageUrls;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Map<String, String> getHeader(String url) {
|
||||||
|
// final headers = {
|
||||||
|
// 'Origin': url,
|
||||||
|
// 'Referer': '$url/',
|
||||||
|
// 'Accept': 'application/json, text/plain, */*',
|
||||||
|
// 'Content-Type': 'application/json'
|
||||||
|
// };
|
||||||
|
// return headers;
|
||||||
|
// }
|
||||||
34
multisrc/heancms/sources.dart
Normal file
34
multisrc/heancms/sources.dart
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import '../../model/source.dart';
|
||||||
|
|
||||||
|
const heancmsVersion = "0.0.1";
|
||||||
|
const heancmsSourceCodeUrl =
|
||||||
|
"https://raw.githubusercontent.com/kodjodevf/External-source-test/main/multisrc/heancms/heancms-v$heancmsVersion.dart";
|
||||||
|
const defaultDateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ";
|
||||||
|
const defaultDateFormatLocale = "en";
|
||||||
|
List<Source> get heanCmsSourcesList => _heanCmsSourcesList;
|
||||||
|
List<Source> _heanCmsSourcesList = [
|
||||||
|
Source(
|
||||||
|
name: "YugenMangas",
|
||||||
|
baseUrl: "https://yugenmangas.net",
|
||||||
|
apiUrl: "https://api.yugenmangas.net",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "heancms",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
sourceCodeUrl: heancmsSourceCodeUrl,
|
||||||
|
version: heancmsVersion,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale),
|
||||||
|
Source(
|
||||||
|
name: "OmegaScans",
|
||||||
|
baseUrl: "https://omegascans.org",
|
||||||
|
apiUrl: "https://api.omegascans.org",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "heancms",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
sourceCodeUrl: heancmsSourceCodeUrl,
|
||||||
|
version: heancmsVersion,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale),
|
||||||
|
];
|
||||||
282
multisrc/madara/madara-v0.0.1.dart
Normal file
282
multisrc/madara/madara-v0.0.1.dart
Normal file
@@ -0,0 +1,282 @@
|
|||||||
|
// import 'dart:convert';
|
||||||
|
|
||||||
|
// getPopularManga(MangaModel manga) async {
|
||||||
|
// final url = "${manga.baseUrl}/manga/page/${manga.page}/?m_orderby=views";
|
||||||
|
// final data = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.urls = MBridge.xpath(res, '//*[@class^="post-title"]/h3/a/@href', '-.')
|
||||||
|
// .split("-.");
|
||||||
|
// String images =
|
||||||
|
// MBridge.xpath(res, '//*[@id^="manga-item"]/a/img/@data-src', '-.');
|
||||||
|
// if (images.isEmpty) {
|
||||||
|
// images =
|
||||||
|
// MBridge.xpath(res, '//*[@id^="manga-item"]/a/img/@data-lazy-src', '-.');
|
||||||
|
// if (images.isEmpty) {
|
||||||
|
// images = MBridge.xpath(res, '//*[@id^="manga-item"]/a/img/@srcset', '-.');
|
||||||
|
// if (images.isEmpty) {
|
||||||
|
// images = MBridge.xpath(res, '//*[@id^="manga-item"]/a/img/@src', '-.');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// manga.images = images.split("-.");
|
||||||
|
// manga.names =
|
||||||
|
// MBridge.xpath(res, '//*[@id^="manga-item"]/a/@title', '-.').split("-.");
|
||||||
|
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getMangaDetail(MangaModel manga) async {
|
||||||
|
// final statusList = [
|
||||||
|
// {
|
||||||
|
// "OnGoing": 0,
|
||||||
|
// "Продолжается": 0,
|
||||||
|
// "Updating": 0,
|
||||||
|
// "Em Lançamento": 0,
|
||||||
|
// "Em lançamento": 0,
|
||||||
|
// "Em andamento": 0,
|
||||||
|
// "Em Andamento": 0,
|
||||||
|
// "En cours": 0,
|
||||||
|
// "Ativo": 0,
|
||||||
|
// "Lançando": 0,
|
||||||
|
// "Đang Tiến Hành": 0,
|
||||||
|
// "Devam Ediyor": 0,
|
||||||
|
// "Devam ediyor": 0,
|
||||||
|
// "In Corso": 0,
|
||||||
|
// "In Arrivo": 0,
|
||||||
|
// "مستمرة": 0,
|
||||||
|
// "مستمر": 0,
|
||||||
|
// "En Curso": 0,
|
||||||
|
// "En curso": 0,
|
||||||
|
// "Emision": 0,
|
||||||
|
// "En marcha": 0,
|
||||||
|
// "Publicandose": 0,
|
||||||
|
// "En emision": 0,
|
||||||
|
// "连载中": 0,
|
||||||
|
// "Completed": 1,
|
||||||
|
// "Completo": 1,
|
||||||
|
// "Completado": 1,
|
||||||
|
// "Concluído": 1,
|
||||||
|
// "Concluido": 1,
|
||||||
|
// "Finalizado": 1,
|
||||||
|
// "Terminé": 1,
|
||||||
|
// "Hoàn Thành": 1,
|
||||||
|
// "مكتملة": 1,
|
||||||
|
// "مكتمل": 1,
|
||||||
|
// "已完结": 1,
|
||||||
|
// "On Hold": 2,
|
||||||
|
// "Pausado": 2,
|
||||||
|
// "En espera": 2,
|
||||||
|
// "Canceled": 3,
|
||||||
|
// "Cancelado": 3,
|
||||||
|
// }
|
||||||
|
// ];
|
||||||
|
|
||||||
|
// final datas = {
|
||||||
|
// "url": manga.link,
|
||||||
|
// "headers": null,
|
||||||
|
// "sourceId": manga.sourceId
|
||||||
|
// };
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.author =
|
||||||
|
// MBridge.querySelectorAll(res, "div.author-content > a", 0, "", 0, 0, "");
|
||||||
|
// manga.description = MBridge.querySelectorAll(
|
||||||
|
// res,
|
||||||
|
// "div.description-summary div.summary__content, div.summary_content div.post-content_item > h5 + div, div.summary_content div.manga-excerpt, div.sinopsis div.contenedor, .description-summary > p",
|
||||||
|
// 0,
|
||||||
|
// "",
|
||||||
|
// 0,
|
||||||
|
// 0,
|
||||||
|
// "");
|
||||||
|
// manga.imageUrl =
|
||||||
|
// MBridge.querySelectorAll(res, "div.summary_image img", 2, "", 2, 1, "");
|
||||||
|
// final mangaId = MBridge.querySelectorAll(
|
||||||
|
// res, "div[id^=manga-chapters-holder]", 3, "data-id", 0, 1, "");
|
||||||
|
// manga.status = MBridge.parseStatus(
|
||||||
|
// MBridge.querySelectorAll(res, "div.summary-content", 0, "", 0, 2, ""),
|
||||||
|
// statusList);
|
||||||
|
|
||||||
|
// manga.genre =
|
||||||
|
// MBridge.querySelectorAll(res, "div.genres-content a", 0, "", 0, 0, "-.")
|
||||||
|
// .split("-.");
|
||||||
|
|
||||||
|
// final baseUrl = "${manga.baseUrl}/";
|
||||||
|
// final headers = {
|
||||||
|
// "Referer": baseUrl,
|
||||||
|
// "Content-Type": "application/x-www-form-urlencoded",
|
||||||
|
// "X-Requested-With": "XMLHttpRequest"
|
||||||
|
// };
|
||||||
|
// final url =
|
||||||
|
// "${baseUrl}wp-admin/admin-ajax.php?action=manga_get_chapters&manga=$mangaId";
|
||||||
|
// final datasP = {"url": url, "headers": headers, "sourceId": manga.sourceId};
|
||||||
|
|
||||||
|
// String resP = await MBridge.http(json.encode(datasP), 1);
|
||||||
|
// if (resP == "400") {
|
||||||
|
// final urlP = "${manga.link}ajax/chapters";
|
||||||
|
// final datasP = {
|
||||||
|
// "url": urlP,
|
||||||
|
// "headers": headers,
|
||||||
|
// "sourceId": manga.sourceId
|
||||||
|
// };
|
||||||
|
// resP = await MBridge.http(json.encode(datasP), 1);
|
||||||
|
// }
|
||||||
|
// manga.urls = MBridge.xpath(resP, "//li/a/@href", '-.').split("-.");
|
||||||
|
// List<dynamic> chaptersNames =
|
||||||
|
// MBridge.xpath(resP, "//li/a/text()", '-.').split("-.");
|
||||||
|
|
||||||
|
// List<dynamic> dateF =
|
||||||
|
// MBridge.xpath(resP, "//li/span/i/text()", '-.').split("-.");
|
||||||
|
// if (MBridge.xpath(resP, "//li/a/text()", "").isEmpty) {
|
||||||
|
// final resWebview = await MBridge.getHtmlViaWebview(manga.link,
|
||||||
|
// "//*[@id='manga-chapters-holder']/div[2]/div/ul/li/a/@href");
|
||||||
|
// manga.urls = MBridge.xpath(resWebview,
|
||||||
|
// "//*[@id='manga-chapters-holder']/div[2]/div/ul/li/a/@href", '-.')
|
||||||
|
// .split("-.");
|
||||||
|
// chaptersNames = MBridge.xpath(resWebview,
|
||||||
|
// "//*[@id='manga-chapters-holder']/div[2]/div/ul/li/a/text()", '-.')
|
||||||
|
// .split("-.");
|
||||||
|
// dateF = MBridge.xpath(
|
||||||
|
// resWebview,
|
||||||
|
// "//*[@id='manga-chapters-holder']/div[2]/div/ul/li/span/i/text()",
|
||||||
|
// '-.')
|
||||||
|
// .split("-.");
|
||||||
|
// }
|
||||||
|
|
||||||
|
// manga.names = chaptersNames;
|
||||||
|
// List<String> chapterDate = [];
|
||||||
|
// if (dateF.length == chaptersNames.length) {
|
||||||
|
// manga.chaptersDateUploads = MBridge.listParseDateTime(
|
||||||
|
// dateF, manga.dateFormat, manga.dateFormatLocale);
|
||||||
|
// } else if (dateF.length < chaptersNames.length) {
|
||||||
|
// final length = chaptersNames.length - dateF.length;
|
||||||
|
// String date = "${DateTime.now().millisecondsSinceEpoch}";
|
||||||
|
// for (var i = 0; i < length - 1; i++) {
|
||||||
|
// date += "--..${DateTime.now().millisecondsSinceEpoch}";
|
||||||
|
// }
|
||||||
|
|
||||||
|
// final dateFF = MBridge.listParseDateTime(
|
||||||
|
// dateF, manga.dateFormat, manga.dateFormatLocale);
|
||||||
|
// List<String> chapterDate = MBridge.listParse(date.split('--..'), 0);
|
||||||
|
|
||||||
|
// for (var date in dateFF) {
|
||||||
|
// chapterDate.add(date);
|
||||||
|
// }
|
||||||
|
// manga.chaptersDateUploads = chapterDate;
|
||||||
|
// }
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getChapterUrl(MangaModel manga) async {
|
||||||
|
// final datas = {
|
||||||
|
// "url": manga.link,
|
||||||
|
// "headers": null,
|
||||||
|
// "sourceId": manga.sourceId
|
||||||
|
// };
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
// final pagesSelectorRes = MBridge.querySelector(
|
||||||
|
// res,
|
||||||
|
// "div.page-break, li.blocks-gallery-item, .reading-content, .text-left img",
|
||||||
|
// 1,
|
||||||
|
// "");
|
||||||
|
// final imgs =
|
||||||
|
// MBridge.querySelectorAll(pagesSelectorRes, "img", 2, "", 2, 0, '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// List<dynamic> pageUrls = [];
|
||||||
|
|
||||||
|
// if (imgs.length == 1) {
|
||||||
|
// final pages = MBridge.querySelector(res, "#single-pager", 2, "");
|
||||||
|
|
||||||
|
// final pagesNumber =
|
||||||
|
// MBridge.querySelectorAll(pages, "option", 2, "", 0, 0, '-.')
|
||||||
|
// .split('-.');
|
||||||
|
|
||||||
|
// for (var i = 0; i < pagesNumber.length; i++) {
|
||||||
|
// final val = i + 1;
|
||||||
|
// if (i.toString().length == 1) {
|
||||||
|
// pageUrls.add(
|
||||||
|
// MBridge.querySelectorAll(pagesSelectorRes, "img", 2, "", 2, 0, "")
|
||||||
|
// .replaceAll("01", '0$val'));
|
||||||
|
// } else {
|
||||||
|
// pageUrls.add(
|
||||||
|
// MBridge.querySelectorAll(pagesSelectorRes, "img", 2, "", 2, 0, "")
|
||||||
|
// .replaceAll("01", val.toString()));
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// return imgs;
|
||||||
|
// }
|
||||||
|
// return pageUrls;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getLatestUpdatesManga(MangaModel manga) async {
|
||||||
|
// final url = "${manga.baseUrl}/manga/page/${manga.page}/?m_orderby=latest";
|
||||||
|
// final datas = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.urls = MBridge.xpath(res, '//*[@class^="post-title"]/h3/a/@href', '-.')
|
||||||
|
// .split("-.");
|
||||||
|
// String images =
|
||||||
|
// MBridge.xpath(res, '//*[@id^="manga-item"]/a/img/@data-src', '-.');
|
||||||
|
// if (images.isEmpty) {
|
||||||
|
// images =
|
||||||
|
// MBridge.xpath(res, '//*[@id^="manga-item"]/a/img/@data-lazy-src', '-.');
|
||||||
|
// if (images.isEmpty) {
|
||||||
|
// images = MBridge.xpath(res, '//*[@id^="manga-item"]/a/img/@srcset', '-.');
|
||||||
|
// if (images.isEmpty) {
|
||||||
|
// images = MBridge.xpath(res, '//*[@id^="manga-item"]/a/img/@src', '-.');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// manga.images = images.split("-.");
|
||||||
|
// manga.names =
|
||||||
|
// MBridge.xpath(res, '//*[@id^="manga-item"]/a/@title', '-.').split("-.");
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// searchManga(MangaModel manga) async {
|
||||||
|
// final urll = "${manga.baseUrl}/?s=${manga.query}&post_type=wp-manga";
|
||||||
|
// final datas = {"url": urll, "headers": null, "sourceId": manga.sourceId};
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.urls =
|
||||||
|
// MBridge.xpath(res, '//*[@class^="tab-thumb c-image-hover"]/a/@href', '-.')
|
||||||
|
// .split("-.");
|
||||||
|
// String images = MBridge.xpath(
|
||||||
|
// res, '//*[@class^="tab-thumb c-image-hover"]/a/img/@data-src', '-.');
|
||||||
|
// if (images.isEmpty) {
|
||||||
|
// images = MBridge.xpath(res,
|
||||||
|
// '//*[@class^="tab-thumb c-image-hover"]/a/img/@data-lazy-src', '-.');
|
||||||
|
// if (images.isEmpty) {
|
||||||
|
// images = MBridge.xpath(
|
||||||
|
// res, '//*[@class^="tab-thumb c-image-hover"]/a/img/@srcset', '-.');
|
||||||
|
// if (images.isEmpty) {
|
||||||
|
// images = MBridge.xpath(
|
||||||
|
// res, '//*[@class^="tab-thumb c-image-hover"]/a/img/@src', '-.');
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// manga.images = images.split("-.");
|
||||||
|
// manga.names = MBridge.xpath(
|
||||||
|
// res, '//*[@class^="tab-thumb c-image-hover"]/a/@title', '-.')
|
||||||
|
// .split("-.");
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Map<String, String> getHeader(String url) {
|
||||||
|
// final headers = {
|
||||||
|
// "Referer": "$url/",
|
||||||
|
// };
|
||||||
|
// return headers;
|
||||||
|
// }
|
||||||
637
multisrc/madara/sources.dart
Normal file
637
multisrc/madara/sources.dart
Normal file
@@ -0,0 +1,637 @@
|
|||||||
|
import '../../model/source.dart';
|
||||||
|
|
||||||
|
const madaraVersion = "0.0.1";
|
||||||
|
const madaraSourceCodeUrl =
|
||||||
|
"https://raw.githubusercontent.com/kodjodevf/External-source-test/main/multisrc/madara/madara-v$madaraVersion.dart";
|
||||||
|
const defaultDateFormat = "MMMM dd, yyyy";
|
||||||
|
const defaultDateFormatLocale = "en_US";
|
||||||
|
List<Source> get madaraSourcesList => _madaraSourcesList;
|
||||||
|
List<Source> _madaraSourcesList = [
|
||||||
|
Source(
|
||||||
|
name: "FR-Scan",
|
||||||
|
baseUrl: "https://fr-scan.com",
|
||||||
|
lang: "fr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: "fr",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "AstralManga",
|
||||||
|
baseUrl: "https://astral-manga.fr",
|
||||||
|
lang: "fr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/mm/yyyy",
|
||||||
|
dateFormatLocale: "fr",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Akuma no Tenshi",
|
||||||
|
baseUrl: "https://akumanotenshi.com",
|
||||||
|
lang: "tr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/MM/yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Adult Webtoon",
|
||||||
|
baseUrl: "https://adultwebtoon.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
isNsfw: true,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "ArazNovel",
|
||||||
|
baseUrl: "https://www.araznovel.com",
|
||||||
|
lang: "tr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "d MMMM yyyy",
|
||||||
|
dateFormatLocale: "en",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "BestManga",
|
||||||
|
baseUrl: "https://bestmanga.club",
|
||||||
|
lang: "ru",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd.MM.yyyy",
|
||||||
|
dateFormatLocale: "ru",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Chibi Manga",
|
||||||
|
baseUrl: "https://www.cmreader.info",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "CookieToon",
|
||||||
|
baseUrl: "https://cookietoon.online",
|
||||||
|
lang: "pt-br",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/MM/yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Drope Scan",
|
||||||
|
baseUrl: "https://dropescan.com",
|
||||||
|
lang: "pt-br",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/MM/yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "EvaScans",
|
||||||
|
baseUrl: "https://evascans.com",
|
||||||
|
lang: "tr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyy",
|
||||||
|
dateFormatLocale: "tr",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Final Scans",
|
||||||
|
baseUrl: "https://finalscans.com",
|
||||||
|
lang: "pt-br",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
isNsfw: true,
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Glory Manga",
|
||||||
|
baseUrl: "https://glorymanga.com",
|
||||||
|
lang: "tr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/MM/yyy",
|
||||||
|
dateFormatLocale: "tr",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Hentai Manga",
|
||||||
|
baseUrl: "https://hentaimanga.me",
|
||||||
|
isNsfw: true,
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "HentaiWebtoon",
|
||||||
|
baseUrl: "https://hentaiwebtoon.com",
|
||||||
|
isNsfw: true,
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Ikifeng",
|
||||||
|
baseUrl: "https://ikifeng.com",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
isNsfw: true,
|
||||||
|
dateFormat: "dd/MM/yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Inmortal Scan",
|
||||||
|
baseUrl: "https://manga.mundodrama.site",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Its Your Right Manhua",
|
||||||
|
baseUrl: "https://itsyourightmanhua.com/",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Kami Sama Explorer",
|
||||||
|
baseUrl: "https://leitor.kamisama.com.br",
|
||||||
|
lang: "pt-br",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd 'de' MMMM 'de' yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "KlikManga",
|
||||||
|
baseUrl: "https://klikmanga.id",
|
||||||
|
lang: "id",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "KSGroupScans",
|
||||||
|
baseUrl: "https://ksgroupscans.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "LHTranslation",
|
||||||
|
baseUrl: "https://lhtranslation.net",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Lolicon",
|
||||||
|
baseUrl: "https://lolicon.mobi",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Lord Manga",
|
||||||
|
baseUrl: "https://lordmanga.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaVisa",
|
||||||
|
baseUrl: "https://mangavisa.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaClash",
|
||||||
|
baseUrl: "https://mangaclash.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MM/dd/yy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manga District",
|
||||||
|
baseUrl: "https://mangadistrict.com",
|
||||||
|
lang: "tr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
isNsfw: true,
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manga-fast.com",
|
||||||
|
baseUrl: "https://manga-fast.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "d MMMM'،' yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manga Fenix",
|
||||||
|
baseUrl: "https://manga-fenix.com",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaFreak.online",
|
||||||
|
baseUrl: "https://mangafreak.online",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "d MMMM، yyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaGreat",
|
||||||
|
baseUrl: "https://mangagreat.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manga Hentai",
|
||||||
|
baseUrl: "https://mangahentai.me",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaMe",
|
||||||
|
baseUrl: "https://mangame.org",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd.MM.yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manga One Love",
|
||||||
|
baseUrl: "https://mangaonelove.site",
|
||||||
|
lang: "ru",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
isNsfw: true,
|
||||||
|
dateFormat: "dd.MM.yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manga Read",
|
||||||
|
baseUrl: "https://mangaread.co",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "yyyy-MM-dd",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaRolls",
|
||||||
|
baseUrl: "https://mangarolls.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manga Şehri",
|
||||||
|
baseUrl: "https://mangasehri.com",
|
||||||
|
lang: "tr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/MM/yyy",
|
||||||
|
dateFormatLocale: "tr",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Mangasushi",
|
||||||
|
baseUrl: "https://mangasushi.org",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manhwa68",
|
||||||
|
baseUrl: "https://manhwa68.com",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manhwua.fans",
|
||||||
|
baseUrl: "https://manhwua.fans",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "yyyy'年'M'月'd",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "ManyToon.me",
|
||||||
|
baseUrl: "https://manytoon.me",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Milftoon",
|
||||||
|
baseUrl: "https://milftoon.xxx",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "d MMMM, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MurimScan",
|
||||||
|
baseUrl: "https://murimscan.run",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Ninja Scan",
|
||||||
|
baseUrl: "https://ninjascan.xyz",
|
||||||
|
lang: "pt-br",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd 'de' MMMMM 'de' yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "NovelCrow",
|
||||||
|
baseUrl: "https://novelcrow.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
isNsfw: true,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Pirulito Rosa",
|
||||||
|
baseUrl: "https://pirulitorosa.site",
|
||||||
|
lang: "pt-br",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
isNsfw: true,
|
||||||
|
dateFormat: "dd/MM/yyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "RagnarokScan",
|
||||||
|
baseUrl: "https://ragnarokscan.com",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Ragnarok Scanlation",
|
||||||
|
baseUrl: "https://ragnarokscanlation.com",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Rio2 Manga",
|
||||||
|
baseUrl: "https://rio2manga.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Romantik Manga",
|
||||||
|
baseUrl: "https://rio2manga.com",
|
||||||
|
lang: "tr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "SamuraiScan",
|
||||||
|
baseUrl: "https://samuraiscan.com",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Sdl scans",
|
||||||
|
baseUrl: "https://sdlscans.com",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Shayami",
|
||||||
|
baseUrl: "https://shayami.com",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Taurus Fansub",
|
||||||
|
baseUrl: "https://tatakaescan.com",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/MM/yyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "The Sugar",
|
||||||
|
baseUrl: "https://thesugarscan.com",
|
||||||
|
lang: "pt-br",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/MM/yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "365Manga",
|
||||||
|
baseUrl: "https://365manga.com",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Tortuga Ceviri",
|
||||||
|
baseUrl: "https://tortuga-ceviri.com",
|
||||||
|
lang: "tr",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM d, yyyy",
|
||||||
|
dateFormatLocale: "tr",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Tumangaonline.site",
|
||||||
|
baseUrl: "https://tumangaonline.site",
|
||||||
|
lang: "es",
|
||||||
|
isNsfw: true,
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd MMMMM, yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Winter Scan",
|
||||||
|
baseUrl: "https://winterscan.com",
|
||||||
|
lang: "pt-br",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd 'de' MMMM 'de' yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Yuri Verso",
|
||||||
|
baseUrl: "https://yuri.live",
|
||||||
|
lang: "pt-br",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/MM/yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Zero Scan",
|
||||||
|
baseUrl: "https://zeroscan.com.br",
|
||||||
|
lang: "pt-br",
|
||||||
|
isNsfw: true,
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "dd/MM/yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "مانجا ليك",
|
||||||
|
baseUrl: "https://mangalek.com",
|
||||||
|
lang: "ar",
|
||||||
|
typeSource: "madara",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "ar",
|
||||||
|
version: madaraVersion,
|
||||||
|
sourceCodeUrl: madaraSourceCodeUrl),
|
||||||
|
];
|
||||||
194
multisrc/mangareader/mangareader-v0.0.1.dart
Normal file
194
multisrc/mangareader/mangareader-v0.0.1.dart
Normal file
@@ -0,0 +1,194 @@
|
|||||||
|
// import 'dart:convert';
|
||||||
|
// import 'package:bridge_lib/bridge_lib.dart';
|
||||||
|
|
||||||
|
// getPopularManga(MangaModel manga) async {
|
||||||
|
// final url = "${manga.baseUrl}/manga/?page=${manga.page}&order=popular";
|
||||||
|
// final data = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.urls =
|
||||||
|
// MBridge.xpath(res, '//*[ @class="imgu" or @class="bsx"]/a/@href', '._')
|
||||||
|
// .split('._');
|
||||||
|
// manga.names =
|
||||||
|
// MBridge.xpath(res, '//*[ @class="imgu" or @class="bsx"]/a/@title', '._')
|
||||||
|
// .split('._');
|
||||||
|
// manga.images = MBridge.xpath(
|
||||||
|
// res, '//*[ @class="imgu" or @class="bsx"]/a/div[1]/img/@src', '._')
|
||||||
|
// .split('._');
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getLatestUpdatesManga(MangaModel manga) async {
|
||||||
|
// final url = "${manga.baseUrl}/manga/?page=${manga.page}&order=update";
|
||||||
|
// final data = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.urls =
|
||||||
|
// MBridge.xpath(res, '//*[ @class="imgu" or @class="bsx"]/a/@href', '._')
|
||||||
|
// .split('._');
|
||||||
|
// manga.names =
|
||||||
|
// MBridge.xpath(res, '//*[ @class="imgu" or @class="bsx"]/a/@title', '._')
|
||||||
|
// .split('._');
|
||||||
|
// manga.images = MBridge.xpath(
|
||||||
|
// res, '//*[ @class="imgu" or @class="bsx"]/a/div[1]/img/@src', '._')
|
||||||
|
// .split('._');
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getMangaDetail(MangaModel manga) async {
|
||||||
|
// final statusList = [
|
||||||
|
// {
|
||||||
|
// "مستمرة": 0,
|
||||||
|
// "En curso": 0,
|
||||||
|
// "Ongoing": 0,
|
||||||
|
// "On going": 0,
|
||||||
|
// "Ativo": 0,
|
||||||
|
// "En Cours": 0,
|
||||||
|
// "Berjalan": 0,
|
||||||
|
// "Продолжается": 0,
|
||||||
|
// "Updating": 0,
|
||||||
|
// "Lançando": 0,
|
||||||
|
// "In Arrivo": 0,
|
||||||
|
// "OnGoing": 0,
|
||||||
|
// "Đang tiến hành": 0,
|
||||||
|
// "em lançamento": 0,
|
||||||
|
// "Онгоінг": 0,
|
||||||
|
// "Publishing": 0,
|
||||||
|
// "Curso": 0,
|
||||||
|
// "En marcha": 0,
|
||||||
|
// "Publicandose": 0,
|
||||||
|
// "连载中": 0,
|
||||||
|
// "Devam Ediyor": 0,
|
||||||
|
// "Em Andamento": 0,
|
||||||
|
// "In Corso": 0,
|
||||||
|
// "Güncel": 0,
|
||||||
|
// "Emision": 0,
|
||||||
|
// "En emision": 0,
|
||||||
|
// "مستمر": 0,
|
||||||
|
// "Đã hoàn thành": 1,
|
||||||
|
// "مكتملة": 1,
|
||||||
|
// "Завершено": 1,
|
||||||
|
// "Complété": 1,
|
||||||
|
// "Fini": 1,
|
||||||
|
// "Terminé": 1,
|
||||||
|
// "Tamamlandı": 1,
|
||||||
|
// "Tamat": 1,
|
||||||
|
// "Completado": 1,
|
||||||
|
// "Concluído": 1,
|
||||||
|
// "Finished": 1,
|
||||||
|
// "Completed": 1,
|
||||||
|
// "Completo": 1,
|
||||||
|
// "Concluido": 1,
|
||||||
|
// "已完结": 1,
|
||||||
|
// "Finalizado": 1,
|
||||||
|
// "Completata": 1,
|
||||||
|
// "One-Shot": 1,
|
||||||
|
// "Bitti": 1,
|
||||||
|
// "hiatus": 2,
|
||||||
|
// }
|
||||||
|
// ];
|
||||||
|
|
||||||
|
// final datas = {
|
||||||
|
// "url": manga.link,
|
||||||
|
// "headers": null,
|
||||||
|
// "sourceId": manga.sourceId
|
||||||
|
// };
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.author = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="imptdt" and contains(text(), "Author") or @class="infotable" and contains(text(), "Author") or @class="infotable" and contains(text(), "Auteur") or @class="infotable" and contains(text(), "Autor")]/text()',
|
||||||
|
// '')
|
||||||
|
// .replaceAll("Autor", "")
|
||||||
|
// .replaceAll("Author", "")
|
||||||
|
// .replaceAll("Auteur", "")
|
||||||
|
// .replaceAll("[Add, ]", "");
|
||||||
|
// manga.description = MBridge.querySelectorAll(
|
||||||
|
// res, ".desc, .entry-content[itemprop=description]", 0, "", 0, 0, "");
|
||||||
|
// final status = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="imptdt" and contains(text(), "Status") or @class="imptdt" and contains(text(), "Estado") or @class="infotable" and contains(text(), "Status") or @class="infotable" and contains(text(), "Statut")]/text()',
|
||||||
|
// '')
|
||||||
|
// .replaceAll("Status", "")
|
||||||
|
// .replaceAll("Estado", "")
|
||||||
|
// .replaceAll("Statut", "");
|
||||||
|
// manga.status = MBridge.parseStatus(status, statusList);
|
||||||
|
|
||||||
|
// manga.genre = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="gnr" or @class="mgen" or @class="seriestugenre" ]/a/text()',
|
||||||
|
// "-.")
|
||||||
|
// .split("-.");
|
||||||
|
// manga.urls = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="bxcl" or @class="cl" or @class="chbox" or @class="eph-num" or @id="chapterlist"]/div/a[not(@href="#/chapter-{{number}}")]/@href',
|
||||||
|
// "-.")
|
||||||
|
// .split("-.");
|
||||||
|
// manga.names = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="bxcl" or @class="cl" or @class="chbox" or @class="eph-num" or @id="chapterlist"]/div/a/span[@class="chapternum" and not(text()="Chapter {{number}}") or @class="lch" and not(text()="Chapter {{number}}")]/text()',
|
||||||
|
// "-.")
|
||||||
|
// .split("-.");
|
||||||
|
|
||||||
|
// final chaptersDateUploads = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="bxcl" or @class="cl" or @class="chbox" or @class="eph-num" or @id="chapterlist"]/div/a/span[@class="chapterdate" and not(text()="{{date}}")]/text()',
|
||||||
|
// "-.")
|
||||||
|
// .split("-.");
|
||||||
|
// manga.chaptersDateUploads = MBridge.listParseDateTime(
|
||||||
|
// chaptersDateUploads, manga.dateFormat, manga.dateFormatLocale);
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// searchManga(MangaModel manga) async {
|
||||||
|
// final url =
|
||||||
|
// "${manga.baseUrl}/manga/?&title=${manga.query}&page=${manga.page}";
|
||||||
|
// final data = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.urls =
|
||||||
|
// MBridge.xpath(res, '//*[ @class="imgu" or @class="bsx"]/a/@href', '._')
|
||||||
|
// .split('._');
|
||||||
|
// manga.names =
|
||||||
|
// MBridge.xpath(res, '//*[ @class="imgu" or @class="bsx"]/a/@title', '._')
|
||||||
|
// .split('._');
|
||||||
|
// manga.images = MBridge.xpath(
|
||||||
|
// res, '//*[ @class="imgu" or @class="bsx"]/a/div[1]/img/@src', '._')
|
||||||
|
// .split('._');
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getChapterUrl(MangaModel manga) async {
|
||||||
|
// final datas = {
|
||||||
|
// "url": manga.link,
|
||||||
|
// "headers": null,
|
||||||
|
// "sourceId": manga.sourceId
|
||||||
|
// };
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
// List<String> pagesUrl = [];
|
||||||
|
// final pages = MBridge.xpath(res, '//*[@id="readerarea"]/img/@src', "._._")
|
||||||
|
// .split("._._");
|
||||||
|
// if (pages.length == 1) {
|
||||||
|
// final images =
|
||||||
|
// MBridge.regExp(res, "\"images\"\\s*:\\s*(\\[.*?])", "", 1, 1);
|
||||||
|
// final pages = MBridge.jsonDecodeToList(images);
|
||||||
|
// for (var page in pages) {
|
||||||
|
// pagesUrl.add(page);
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// pagesUrl = pages;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return pagesUrl;
|
||||||
|
// }
|
||||||
927
multisrc/mangareader/sources.dart
Normal file
927
multisrc/mangareader/sources.dart
Normal file
@@ -0,0 +1,927 @@
|
|||||||
|
import '../../model/source.dart';
|
||||||
|
|
||||||
|
const mangareaderVersion = "0.0.1";
|
||||||
|
const mangareaderSourceCodeUrl =
|
||||||
|
"https://raw.githubusercontent.com/kodjodevf/External-source-test/main/multisrc/mangareader/mangareader-v$mangareaderVersion.dart";
|
||||||
|
const defaultDateFormat = "MMMM dd, yyyy";
|
||||||
|
const defaultDateFormatLocale = "en_US";
|
||||||
|
List<Source> get mangareaderSourcesList => _mangareaderSourcesList;
|
||||||
|
List<Source> _mangareaderSourcesList = [
|
||||||
|
Source(
|
||||||
|
name: "Asura Scans",
|
||||||
|
baseUrl: "https://www.asurascans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyyy",
|
||||||
|
dateFormatLocale: "en_US",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Legacy Scans",
|
||||||
|
baseUrl: "https://legacy-scans.com",
|
||||||
|
lang: "fr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: "fr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Komik Lab",
|
||||||
|
baseUrl: "https://komiklab.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Miau Scan",
|
||||||
|
baseUrl: "https://miauscan.com",
|
||||||
|
lang: "pt-BR",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Animated Glitched Scans",
|
||||||
|
baseUrl: "https://anigliscans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Arena Scans",
|
||||||
|
baseUrl: "https://arenascans.net",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Azure Scans",
|
||||||
|
baseUrl: "https://azuremanga.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Banana-Scan",
|
||||||
|
baseUrl: "https://banana-scan.com",
|
||||||
|
lang: "fr",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "fr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Boosei",
|
||||||
|
baseUrl: "https://boosei.net",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Babel Wuxia",
|
||||||
|
baseUrl: "https://babelwuxia.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
// Source(
|
||||||
|
// name: "Cartel de Manhwas",
|
||||||
|
// baseUrl: "https://carteldemanhwas.com",
|
||||||
|
// lang: "es",
|
||||||
|
// iconUrl: '',
|
||||||
|
// dateFormat: defaultDateFormat,
|
||||||
|
// dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
// version: mangareaderVersion,
|
||||||
|
// sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Clayrer",
|
||||||
|
baseUrl: "https://clayrer.net",
|
||||||
|
lang: "es",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Constellar Scans",
|
||||||
|
baseUrl: "https://constellarscans.com",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Cosmic Scans",
|
||||||
|
baseUrl: "https://cosmicscans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "CosmicScans.id",
|
||||||
|
baseUrl: "https://cosmicscans.id",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Diskus Scan",
|
||||||
|
baseUrl: "https://diskusscan.com",
|
||||||
|
lang: "pt-BR",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Dojing.net",
|
||||||
|
baseUrl: "https://dojing.net",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "DragonTranslation",
|
||||||
|
baseUrl: "https://dragontranslation.com",
|
||||||
|
lang: "es",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "DuniaKomik.id",
|
||||||
|
baseUrl: "https://duniakomik.id",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "ElarcPage",
|
||||||
|
baseUrl: "https://elarcpage.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Epsilon Scan",
|
||||||
|
baseUrl: "https://epsilonscan.fr",
|
||||||
|
lang: "fr",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "fr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Franxx Mangás",
|
||||||
|
baseUrl: "https://franxxmangas.net",
|
||||||
|
lang: "pt-BR",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Gecenin Lordu",
|
||||||
|
baseUrl: "https://geceninlordu.com",
|
||||||
|
lang: "tr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "GoGoManga",
|
||||||
|
baseUrl: "https://gogomanga.fun",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Gremory Mangas",
|
||||||
|
baseUrl: "https://gremorymangas.com",
|
||||||
|
lang: "es",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Hanuman Scan",
|
||||||
|
baseUrl: "https://hanumanscan.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Heroxia",
|
||||||
|
baseUrl: "https://heroxia.com",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Imagine Scan",
|
||||||
|
baseUrl: "https://imaginescan.com.br",
|
||||||
|
lang: "pt-BR",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Infernal Void Scans",
|
||||||
|
baseUrl: "https://void-scans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "KataKomik",
|
||||||
|
baseUrl: "https://katakomik.online",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Komik Seru",
|
||||||
|
baseUrl: "https://komikseru.me",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Kanzenin",
|
||||||
|
baseUrl: "https://kanzenin.xyz",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "KomikSan",
|
||||||
|
baseUrl: "https://komiksan.ml",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Kiryuu",
|
||||||
|
baseUrl: "https://kiryuu.id",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Komik AV",
|
||||||
|
baseUrl: "https://komikav.com",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Komik Station",
|
||||||
|
baseUrl: "https://komikstation.co",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "KomikMama",
|
||||||
|
baseUrl: "https://komikmama.co",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "KumaPoi",
|
||||||
|
baseUrl: "https://kumapoi.club",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
hasCloudflare: true,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Komiku.com",
|
||||||
|
baseUrl: "https://komiku.com",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Kuma Scans (Kuma Translation)",
|
||||||
|
baseUrl: "https://kumascans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
hasCloudflare: true,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Legacy Scans",
|
||||||
|
baseUrl: "https://legacy-scans.com",
|
||||||
|
lang: "fr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "LianScans",
|
||||||
|
baseUrl: "https://www.lianscans.my.id",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Magus Manga",
|
||||||
|
baseUrl: "https://magusmanga.com",
|
||||||
|
lang: "ar",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM d, yyyy",
|
||||||
|
dateFormatLocale: "ar",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manga Indo.me",
|
||||||
|
baseUrl: "https://mangaindo.me",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manga Raw.org",
|
||||||
|
baseUrl: "https://mangaraw.org",
|
||||||
|
lang: "ja",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Mangacim",
|
||||||
|
baseUrl: "https://www.mangacim.com",
|
||||||
|
lang: "tr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyy",
|
||||||
|
dateFormatLocale: "tr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaKita",
|
||||||
|
baseUrl: "https://mangakita.net",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaTale",
|
||||||
|
baseUrl: "https://mangatale.co",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaWT",
|
||||||
|
baseUrl: "https://mangawt.com",
|
||||||
|
lang: "tr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyyy",
|
||||||
|
dateFormatLocale: "tr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Mangayaro",
|
||||||
|
baseUrl: "https://mangayaro.net",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manhwa Lover",
|
||||||
|
baseUrl: "https://manhwalover.com",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MangaSwat",
|
||||||
|
baseUrl: "https://swatop.club/",
|
||||||
|
lang: "ar",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Mangás Chan",
|
||||||
|
baseUrl: "https://mangaschan.com",
|
||||||
|
lang: "pt-BR",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "pt-br",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manhwa Freak",
|
||||||
|
baseUrl: "https://manhwafreak.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "ManhwaLand.mom",
|
||||||
|
baseUrl: "https://manhwaland.us",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Manhwax",
|
||||||
|
baseUrl: "https://manhwax.com",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Mareceh",
|
||||||
|
baseUrl: "https://mareceh.com",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MasterKomik",
|
||||||
|
baseUrl: "https://masterkomik.com",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "MELOKOMIK",
|
||||||
|
baseUrl: "https://melokomik.xyz",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Mihentai",
|
||||||
|
baseUrl: "https://mihentai.com",
|
||||||
|
lang: "all",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Mode Scanlator",
|
||||||
|
baseUrl: "https://modescanlator.com",
|
||||||
|
lang: "pt-BR",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Mundo Mangá-Kun",
|
||||||
|
baseUrl: "https://mundomangakun.com.br",
|
||||||
|
lang: "pt-BR",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Nekomik",
|
||||||
|
baseUrl: "https://nekomik.com",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Ngomik",
|
||||||
|
baseUrl: "https://ngomik.net",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Nocturnal Scans",
|
||||||
|
baseUrl: "https://nocturnalscans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Origami Orpheans",
|
||||||
|
baseUrl: "https://origami-orpheans.com.br",
|
||||||
|
lang: "pt-BR",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Ozul Scans",
|
||||||
|
baseUrl: "https://ozulscans.com",
|
||||||
|
lang: "ar",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyy",
|
||||||
|
dateFormatLocale: "ar",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Patatescans",
|
||||||
|
baseUrl: "https://patatescans.com",
|
||||||
|
lang: "fr",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Phantom Scans",
|
||||||
|
baseUrl: "https://phantomscans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "PhenixScans",
|
||||||
|
baseUrl: "https://phenixscans.fr",
|
||||||
|
lang: "fr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "fr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Pi Scans",
|
||||||
|
baseUrl: "https://piscans.in",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "PMScans",
|
||||||
|
baseUrl: "https://rackusreads.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Raiki Scan",
|
||||||
|
baseUrl: "https://raikiscan.com",
|
||||||
|
lang: "es",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM dd, yyyy",
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Raven Scans",
|
||||||
|
baseUrl: "https://ravenscans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Rawkuma",
|
||||||
|
baseUrl: "https://rawkuma.com/",
|
||||||
|
lang: "ja",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Readkomik",
|
||||||
|
baseUrl: "https://readkomik.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Ryukonesia",
|
||||||
|
baseUrl: "https://ryukonesia.net",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Sekaikomik",
|
||||||
|
baseUrl: "https://www.sekaikomik.pro",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Sekte Doujin",
|
||||||
|
baseUrl: "https://sektedoujin.lol",
|
||||||
|
lang: "id",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM dd, yyyy",
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Senpai Ediciones",
|
||||||
|
baseUrl: "http://senpaiediciones.com",
|
||||||
|
lang: "es",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Shadow Mangas",
|
||||||
|
baseUrl: "https://shadowmangas.com",
|
||||||
|
lang: "es",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "es",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Shea Manga",
|
||||||
|
baseUrl: "https://sheakomik.com",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM dd, yyyy",
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: "id",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Silence Scan",
|
||||||
|
baseUrl: "https://silencescan.com.br",
|
||||||
|
lang: "pt-BR",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Snudae Scans",
|
||||||
|
baseUrl: "https://snudaescans.com",
|
||||||
|
lang: "en",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Summer Fansub",
|
||||||
|
baseUrl: "https://smmr.in",
|
||||||
|
lang: "pt-BR",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Surya Scans",
|
||||||
|
baseUrl: "https://suryascans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Sushi-Scan",
|
||||||
|
baseUrl: "https://sushiscan.net",
|
||||||
|
lang: "fr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM dd, yyyy",
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormatLocale: "fr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Tarot Scans",
|
||||||
|
baseUrl: "https://www.tarotscans.com",
|
||||||
|
lang: "tr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "tr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "The Apollo Team",
|
||||||
|
baseUrl: "https://theapollo.team",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Tsundoku Traduções",
|
||||||
|
baseUrl: "https://tsundoku.com.br",
|
||||||
|
lang: "pt-BR",
|
||||||
|
iconUrl: '',
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormat: "MMMMM dd, yyyy",
|
||||||
|
dateFormatLocale: "pt-BR",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "TukangKomik",
|
||||||
|
baseUrl: "https://tukangkomik.id",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyyy",
|
||||||
|
dateFormatLocale: "tr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "TurkToon",
|
||||||
|
baseUrl: "https://turktoon.com",
|
||||||
|
lang: "tr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Uzay Manga",
|
||||||
|
baseUrl: "https://uzaymanga.com",
|
||||||
|
lang: "tr",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyyy",
|
||||||
|
dateFormatLocale: "tr",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "Walpurgi Scan",
|
||||||
|
baseUrl: "https://www.walpurgiscan.com",
|
||||||
|
lang: "it",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: "MMM d, yyyy",
|
||||||
|
dateFormatLocale: "it",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "West Manga",
|
||||||
|
baseUrl: "https://westmanga.info",
|
||||||
|
lang: "id",
|
||||||
|
iconUrl: '',
|
||||||
|
hasCloudflare: true,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "xCaliBR Scans",
|
||||||
|
baseUrl: "https://xcalibrscans.com",
|
||||||
|
lang: "en",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: "สดใสเมะ",
|
||||||
|
baseUrl: "https://www.xn--l3c0azab5a2gta.com",
|
||||||
|
lang: "th",
|
||||||
|
isNsfw: true,
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: "th",
|
||||||
|
version: mangareaderVersion,
|
||||||
|
sourceCodeUrl: mangareaderSourceCodeUrl),
|
||||||
|
];
|
||||||
173
multisrc/mmrcms/mmrcms-v0.0.1.dart
Normal file
173
multisrc/mmrcms/mmrcms-v0.0.1.dart
Normal file
@@ -0,0 +1,173 @@
|
|||||||
|
// import 'dart:convert';
|
||||||
|
// import 'package:bridge_lib/bridge_lib.dart';
|
||||||
|
|
||||||
|
// searchManga(MangaModel manga) async {
|
||||||
|
// final url = "${manga.baseUrl}/search?query=${manga.query}";
|
||||||
|
// final data = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// final jsonList = MBridge.jsonPathToList(res, r'$.suggestions[*]');
|
||||||
|
// List<String> urls = [];
|
||||||
|
// List<String> names = [];
|
||||||
|
// List<String> images = [];
|
||||||
|
// for (var da in jsonList) {
|
||||||
|
// final value = MBridge.getMapValue(da, "value", 0);
|
||||||
|
// final data = MBridge.getMapValue(da, "data", 0);
|
||||||
|
|
||||||
|
// if (manga.source == 'Scan VF') {
|
||||||
|
// urls.add('${manga.baseUrl}/$data');
|
||||||
|
// } else {
|
||||||
|
// urls.add('${manga.baseUrl}/manga/$data');
|
||||||
|
// }
|
||||||
|
// names.add(value);
|
||||||
|
// if (manga.source == "Manga-FR") {
|
||||||
|
// images.add("${manga.baseUrl}/uploads/manga/$data.jpg");
|
||||||
|
// } else {
|
||||||
|
// images
|
||||||
|
// .add("${manga.baseUrl}/uploads/manga/$data/cover/cover_250x350.jpg");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// manga.names = names;
|
||||||
|
// manga.urls = urls;
|
||||||
|
// manga.images = images;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getPopularManga(MangaModel manga) async {
|
||||||
|
// final url =
|
||||||
|
// "${manga.baseUrl}/filterList?page=${manga.page}&sortBy=views&asc=false";
|
||||||
|
// final data = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.urls =
|
||||||
|
// MBridge.xpath(res, '//*[ @class="chart-title"]/@href', '._').split('._');
|
||||||
|
// manga.names =
|
||||||
|
// MBridge.xpath(res, '//*[ @class="chart-title"]/text()', '._').split('._');
|
||||||
|
// List<String> images = [];
|
||||||
|
// for (var url in manga.urls) {
|
||||||
|
// if (manga.source == "Manga-FR") {
|
||||||
|
// images.add(
|
||||||
|
// "${manga.baseUrl}/uploads/manga/${MBridge.listParse(MBridge.stringParse(url).split('/'), 2)[0]}.jpg");
|
||||||
|
// } else {
|
||||||
|
// images.add(
|
||||||
|
// "${manga.baseUrl}/uploads/manga/${MBridge.listParse(MBridge.stringParse(url).split('/'), 2)[0]}/cover/cover_250x350.jpg");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// manga.images = images;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getMangaDetail(MangaModel manga) async {
|
||||||
|
// final statusList = [
|
||||||
|
// {
|
||||||
|
// "complete": 1,
|
||||||
|
// "complet": 1,
|
||||||
|
// "completo": 1,
|
||||||
|
// "zakończone": 1,
|
||||||
|
// "concluído": 1,
|
||||||
|
// "مكتملة": 1,
|
||||||
|
// "ongoing": 0,
|
||||||
|
// "en cours": 0,
|
||||||
|
// "em lançamento": 0,
|
||||||
|
// "prace w toku": 0,
|
||||||
|
// "ativo": 0,
|
||||||
|
// "مستمرة": 0,
|
||||||
|
// "em andamento": 0
|
||||||
|
// }
|
||||||
|
// ];
|
||||||
|
|
||||||
|
// final datas = {
|
||||||
|
// "url": manga.link,
|
||||||
|
// "headers": null,
|
||||||
|
// "sourceId": manga.sourceId
|
||||||
|
// };
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.author = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="dl-horizontal"]/dt[contains(text(), "Auteur(s)") or contains(text(), "Author(s)") or contains(text(), "Autor(es)") or contains(text(), "Yazar(lar) or contains(text(), "Mangaka(lar)")]//following-sibling::dd[1]/text()',
|
||||||
|
// '');
|
||||||
|
// final status = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="dl-horizontal"]/dt[contains(text(), "Statut") or contains(text(), "Status") or contains(text(), "Estado") or contains(text(), "Durum")]/following-sibling::dd[1]/text()',
|
||||||
|
// '');
|
||||||
|
// manga.status = MBridge.parseStatus(status, statusList);
|
||||||
|
// manga.description = MBridge.xpath(
|
||||||
|
// res, '//*[@class="well" or @class="manga well"]/p/text()', '');
|
||||||
|
// manga.genre = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="dl-horizontal"]/dt[contains(text(), "Categories") or contains(text(), "Categorias") or contains(text(), "Categorías") or contains(text(), "Catégories") or contains(text(), "Kategoriler" or contains(text(), "Kategorie") or contains(text(), "Kategori") or contains(text(), "Tagi"))]/following-sibling::dd[1]/text()',
|
||||||
|
// '')
|
||||||
|
// .split(',');
|
||||||
|
// manga.names =
|
||||||
|
// MBridge.xpath(res, '//*[@class="chapter-title-rtl"]/a/text()', "-.")
|
||||||
|
// .split("-.");
|
||||||
|
// manga.urls =
|
||||||
|
// MBridge.xpath(res, '//*[@class="chapter-title-rtl"]/a/@href', "-.")
|
||||||
|
// .split("-.");
|
||||||
|
// final date =
|
||||||
|
// MBridge.xpath(res, '//*[@class="date-chapter-title-rtl"]/text()', "-.")
|
||||||
|
// .split("-.");
|
||||||
|
// manga.chaptersDateUploads =
|
||||||
|
// MBridge.listParseDateTime(date, "d MMM. yyyy", "en_US");
|
||||||
|
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getLatestUpdatesManga(MangaModel manga) async {
|
||||||
|
// final url = "${manga.baseUrl}/latest-release?page=${manga.page}";
|
||||||
|
// final data = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.urls = MBridge.xpath(res, '//*[@class="manga-item"]/h3/a/@href', '._')
|
||||||
|
// .split('._');
|
||||||
|
// manga.names = MBridge.xpath(res, '//*[@class="manga-item"]/h3/a/text()', '._')
|
||||||
|
// .split('._');
|
||||||
|
// List<String> images = [];
|
||||||
|
// for (var url in manga.urls) {
|
||||||
|
// if (manga.source == "Manga-FR") {
|
||||||
|
// images.add(
|
||||||
|
// "${manga.baseUrl}/uploads/manga/${MBridge.listParse(MBridge.stringParse(url).split('/'), 2)[0]}.jpg");
|
||||||
|
// } else {
|
||||||
|
// images.add(
|
||||||
|
// "${manga.baseUrl}/uploads/manga/${MBridge.listParse(MBridge.stringParse(url).split('/'), 2)[0]}/cover/cover_250x350.jpg");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// manga.images = images;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getChapterUrl(MangaModel manga) async {
|
||||||
|
// final datas = {
|
||||||
|
// "url": manga.link,
|
||||||
|
// "headers": null,
|
||||||
|
// "sourceId": manga.sourceId
|
||||||
|
// };
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
// List<String> pagesUrl = [];
|
||||||
|
// final pages = MBridge.listParse(
|
||||||
|
// MBridge.xpath(res,
|
||||||
|
// '//*[@id="all"]/img[@class="img-responsive"]/@data-src', "._._")
|
||||||
|
// .split("._._"),
|
||||||
|
// 0);
|
||||||
|
// for (var page in pages) {
|
||||||
|
// if (page.startsWith('//')) {
|
||||||
|
// pagesUrl.add(page.replaceAll('//', 'https://'));
|
||||||
|
// } else {
|
||||||
|
// pagesUrl.add(page);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return pagesUrl;
|
||||||
|
// }
|
||||||
166
multisrc/mmrcms/sources.dart
Normal file
166
multisrc/mmrcms/sources.dart
Normal file
@@ -0,0 +1,166 @@
|
|||||||
|
import '../../model/source.dart';
|
||||||
|
|
||||||
|
const mmrcmsVersion = "0.0.1";
|
||||||
|
const mmrcmsSourceCodeUrl =
|
||||||
|
"https://raw.githubusercontent.com/kodjodevf/External-source-test/main/multisrc/mmrcms/mmrcms-v$mmrcmsVersion.dart";
|
||||||
|
const defaultDateFormat = "d MMM. yyyy";
|
||||||
|
const defaultDateFormatLocale = "en_US";
|
||||||
|
|
||||||
|
List<Source> get mmrcmsSourcesList => _mmrcmsSourcesList;
|
||||||
|
List<Source> _mmrcmsSourcesList = [
|
||||||
|
Source(
|
||||||
|
name: "Scan FR",
|
||||||
|
baseUrl: "https://www.scan-fr.org",
|
||||||
|
lang: "fr",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
Source(
|
||||||
|
name: "Scan VF",
|
||||||
|
baseUrl: "https://www.scan-vf.net",
|
||||||
|
lang: "fr",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
Source(
|
||||||
|
name: "Komikid",
|
||||||
|
baseUrl: "https://www.komikid.com",
|
||||||
|
lang: "id",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
Source(
|
||||||
|
name: "MangaID",
|
||||||
|
baseUrl: "https://mangaid.click",
|
||||||
|
lang: "id",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
Source(
|
||||||
|
name: "Jpmangas",
|
||||||
|
baseUrl: "https://jpmangas.cc",
|
||||||
|
lang: "fr",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
|
||||||
|
Source(
|
||||||
|
name: "مانجا اون لاين",
|
||||||
|
baseUrl: "https://onma.top",
|
||||||
|
lang: "ar",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
Source(
|
||||||
|
name: "Read Comics Online",
|
||||||
|
baseUrl: "https://readcomicsonline.ru",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
), //
|
||||||
|
Source(
|
||||||
|
name: "Zahard",
|
||||||
|
baseUrl: "https://zahard.xyz",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
Source(
|
||||||
|
name: "Mangadoor",
|
||||||
|
baseUrl: "https://mangadoor.com",
|
||||||
|
lang: "es",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
Source(
|
||||||
|
name: "Utsukushii",
|
||||||
|
baseUrl: "https://manga.utsukushii-bg.com",
|
||||||
|
lang: "bg",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
Source(
|
||||||
|
name: "Phoenix-Scans",
|
||||||
|
baseUrl: "https://phoenix-scans.pl",
|
||||||
|
lang: "pl",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
Source(
|
||||||
|
name: "Lelscan-VF",
|
||||||
|
baseUrl: "https://www.lelscanvf.cc/",
|
||||||
|
lang: "fr",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
// Source(
|
||||||
|
// name: "AnimaRegia",
|
||||||
|
// baseUrl: "https://animaregia.net",
|
||||||
|
// lang: "pt-BR",
|
||||||
|
// typeSource: "mmrcms",
|
||||||
|
// iconUrl: '',
|
||||||
|
// dateFormat: defaultDateFormat,
|
||||||
|
// dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
// version: mmrcmsVersion,
|
||||||
|
// sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
// ),
|
||||||
|
Source(
|
||||||
|
name: "Manga-FR",
|
||||||
|
baseUrl: "https://manga-fr.me",
|
||||||
|
lang: "fr",
|
||||||
|
typeSource: "mmrcms",
|
||||||
|
iconUrl: '',
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: mmrcmsVersion,
|
||||||
|
sourceCodeUrl: mmrcmsSourceCodeUrl,
|
||||||
|
),
|
||||||
|
];
|
||||||
32
sources_generator.dart
Normal file
32
sources_generator.dart
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
import 'dart:convert';
|
||||||
|
import 'dart:developer';
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'model/source.dart';
|
||||||
|
import 'multisrc/heancms/sources.dart';
|
||||||
|
import 'multisrc/madara/sources.dart';
|
||||||
|
import 'multisrc/mangareader/sources.dart';
|
||||||
|
import 'multisrc/mmrcms/sources.dart';
|
||||||
|
import 'src/all/comick/sources.dart';
|
||||||
|
import 'src/all/mangadex/sources.dart';
|
||||||
|
import 'src/en/mangahere/source.dart';
|
||||||
|
|
||||||
|
void main() {
|
||||||
|
List<Source> _sourcesList = [
|
||||||
|
...madaraSourcesList,
|
||||||
|
...comickSourcesList,
|
||||||
|
...mangaDexSourcesList,
|
||||||
|
...mangareaderSourcesList,
|
||||||
|
...mmrcmsSourcesList,
|
||||||
|
...heanCmsSourcesList,
|
||||||
|
mangahereSource
|
||||||
|
];
|
||||||
|
final List<Map<String, dynamic>> jsonList =
|
||||||
|
_sourcesList.map((source) => source.toJson()).toList();
|
||||||
|
final jsonString = jsonEncode(jsonList);
|
||||||
|
|
||||||
|
final file = File('index.json');
|
||||||
|
file.writeAsStringSync(jsonString);
|
||||||
|
|
||||||
|
log('JSON file created: ${file.path}');
|
||||||
|
}
|
||||||
138
src/all/comick/comick-v0.0.1.dart
Normal file
138
src/all/comick/comick-v0.0.1.dart
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
// import 'package:bridge_lib/bridge_lib.dart';
|
||||||
|
// import 'dart:convert';
|
||||||
|
|
||||||
|
// getLatestUpdatesManga(MangaModel manga) async {
|
||||||
|
// final url =
|
||||||
|
// "${manga.apiUrl}/v1.0/search?sort=uploaded&page=${manga.page}&tachiyomi=true";
|
||||||
|
// final data = {"url": url, "headers": getHeader(manga.baseUrl)};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.names = MBridge.jsonPathToList(res, r'$.title');
|
||||||
|
// List<String> ids = MBridge.jsonPathToList(res, r'$.hid');
|
||||||
|
// List<String> mangaUrls = [];
|
||||||
|
// for (var id in ids) {
|
||||||
|
// mangaUrls.add("/comic/$id/#");
|
||||||
|
// }
|
||||||
|
// manga.urls = mangaUrls;
|
||||||
|
// manga.images = MBridge.jsonPathToList(res, r'$.cover_url');
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getMangaDetail(MangaModel manga) async {
|
||||||
|
// final statusList = [
|
||||||
|
// {
|
||||||
|
// "1": 0,
|
||||||
|
// "2": 1,
|
||||||
|
// "3": 3,
|
||||||
|
// "4": 2,
|
||||||
|
// }
|
||||||
|
// ];
|
||||||
|
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
|
||||||
|
// final urll =
|
||||||
|
// "${manga.apiUrl}${manga.link.replaceAll("#", '')}?tachiyomi=true";
|
||||||
|
// final data = {"url": urll, "headers": headers};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.author = MBridge.jsonPathToString(res, r'$.authors[*].name', '');
|
||||||
|
// manga.genre =
|
||||||
|
// MBridge.jsonPathToString(res, r'$.genres[*].name', "_.").split("_.");
|
||||||
|
// manga.description = MBridge.jsonPathToString(res, r'$..desc', '');
|
||||||
|
// manga.status = MBridge.parseStatus(
|
||||||
|
// MBridge.jsonPathToString(res, r'$..comic.status', ''), statusList);
|
||||||
|
// final chapUrlReq =
|
||||||
|
// "${manga.apiUrl}${manga.link.replaceAll("#", '')}chapters?lang=${manga.lang}&tachiyomi=true&page=1";
|
||||||
|
// final dataReq = {"url": chapUrlReq, "headers": headers};
|
||||||
|
// final request = await MBridge.http(json.encode(dataReq), 0);
|
||||||
|
// var total = MBridge.jsonPathToString(request, r'$.total', '');
|
||||||
|
// final chapterLimit = MBridge.intParse("$total");
|
||||||
|
// final newChapUrlReq =
|
||||||
|
// "${manga.apiUrl}${manga.link.replaceAll("#", '')}chapters?limit=$chapterLimit&lang=${manga.lang}&tachiyomi=true&page=1";
|
||||||
|
|
||||||
|
// final newDataReq = {"url": newChapUrlReq, "headers": headers};
|
||||||
|
// final newRequest = await MBridge.http(json.encode(newDataReq), 0);
|
||||||
|
|
||||||
|
// manga.urls = MBridge.jsonPathToString(newRequest, r'$.chapters[*].hid', "_.")
|
||||||
|
// .split("_.");
|
||||||
|
// final chapDate =
|
||||||
|
// MBridge.jsonPathToString(newRequest, r'$.chapters[*].created_at', "_.")
|
||||||
|
// .split("_.");
|
||||||
|
// manga.chaptersDateUploads = MBridge.listParse(
|
||||||
|
// MBridge.listParseDateTime(chapDate, "yyyy-MM-dd'T'HH:mm:ss'Z'", "en"), 0);
|
||||||
|
// manga.chaptersVolumes =
|
||||||
|
// MBridge.jsonPathToString(newRequest, r'$.chapters[*].vol', "_.")
|
||||||
|
// .split("_.");
|
||||||
|
// manga.chaptersScanlators =
|
||||||
|
// MBridge.jsonPathToString(newRequest, r'$.chapters[*].group_name', "_.")
|
||||||
|
// .split("_.");
|
||||||
|
// manga.names =
|
||||||
|
// MBridge.jsonPathToString(newRequest, r'$.chapters[*].title', "_.")
|
||||||
|
// .split("_.");
|
||||||
|
// manga.chaptersChaps =
|
||||||
|
// MBridge.jsonPathToString(newRequest, r'$.chapters[*].chap', "_.")
|
||||||
|
// .split("_.");
|
||||||
|
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getPopularManga(MangaModel manga) async {
|
||||||
|
// final urll =
|
||||||
|
// "${manga.apiUrl}/v1.0/search?sort=follow&page=${manga.page}&tachiyomi=true";
|
||||||
|
// final data = {"url": urll, "headers": getHeader(manga.baseUrl)};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.names = MBridge.jsonPathToList(res, r'$.title');
|
||||||
|
// List<String> ids = MBridge.jsonPathToList(res, r'$.hid');
|
||||||
|
// List<String> mangaUrls = [];
|
||||||
|
// for (var id in ids) {
|
||||||
|
// mangaUrls.add("/comic/$id/#");
|
||||||
|
// }
|
||||||
|
// manga.urls = mangaUrls;
|
||||||
|
// manga.images = MBridge.jsonPathToList(res, r'$.cover_url');
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// searchManga(MangaModel manga) async {
|
||||||
|
// final urll = "${manga.apiUrl}/v1.0/search?q=${manga.query}&tachiyomi=true";
|
||||||
|
// final data = {"url": urll, "headers": getHeader(manga.baseUrl)};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.names = MBridge.jsonPathToList(res, r'$.title');
|
||||||
|
// List<String> ids = MBridge.jsonPathToList(res, r'$.hid');
|
||||||
|
// List<String> mangaUrls = [];
|
||||||
|
// for (var id in ids) {
|
||||||
|
// mangaUrls.add("/comic/$id/#");
|
||||||
|
// }
|
||||||
|
// manga.urls = mangaUrls;
|
||||||
|
// manga.images = MBridge.jsonPathToList(res, r'$.cover_url');
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getChapterUrl(MangaModel manga) async {
|
||||||
|
// final url = "${manga.apiUrl}/chapter/${manga.link}?tachiyomi=true";
|
||||||
|
// final data = {"url": url, "headers": getHeader(url)};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
// return MBridge.jsonPathToString(res, r'$.chapter.images[*].url', '_.')
|
||||||
|
// .split('_.');
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Map<String, String> getHeader(String url) {
|
||||||
|
// final headers = {
|
||||||
|
// "Referer": "$url/",
|
||||||
|
// 'User-Agent':
|
||||||
|
// "Tachiyomi Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:110.0) Gecko/20100101 Firefox/110.0"
|
||||||
|
// };
|
||||||
|
// return headers;
|
||||||
|
// }
|
||||||
221
src/all/comick/sources.dart
Normal file
221
src/all/comick/sources.dart
Normal file
@@ -0,0 +1,221 @@
|
|||||||
|
import '../../../model/source.dart';
|
||||||
|
|
||||||
|
const comickVersion = "0.0.1";
|
||||||
|
const comickSourceCodeUrl =
|
||||||
|
"https://raw.githubusercontent.com/kodjodevf/External-source-test/main/src/all/comick/comick-v$comickVersion.dart";
|
||||||
|
|
||||||
|
const defaultDateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'";
|
||||||
|
const defaultDateFormatLocale = "en";
|
||||||
|
|
||||||
|
const iconUrl =
|
||||||
|
'https://comick.app/_next/image?url=%2Fstatic%2Ficons%2Funicorn-64.png&w=144&q=75';
|
||||||
|
const apiUrl = 'https://api.comick.fun';
|
||||||
|
const baseUrl = 'https://comick.app';
|
||||||
|
const isNsfw = true;
|
||||||
|
List<Source> get comickSourcesList => _comickSourcesList;
|
||||||
|
List<Source> _comickSourcesList = [
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'en',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'ar',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'pt',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'pt-br',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'it',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'ru',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'es',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'es-419',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'id',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'hi',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'de',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'ja',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'tr',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'pl',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'zh',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'zh-hk',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'Comick',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'fr',
|
||||||
|
typeSource: "comick",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: defaultDateFormat,
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: defaultDateFormatLocale,
|
||||||
|
version: comickVersion,
|
||||||
|
sourceCodeUrl: comickSourceCodeUrl),
|
||||||
|
];
|
||||||
385
src/all/mangadex/mangadex-v0.0.1.dart
Normal file
385
src/all/mangadex/mangadex-v0.0.1.dart
Normal file
@@ -0,0 +1,385 @@
|
|||||||
|
// import 'package:bridge_lib/bridge_lib.dart';
|
||||||
|
// import 'dart:convert';
|
||||||
|
|
||||||
|
// String getMDXContentRating() {
|
||||||
|
// String ctnRating = MBridge.stringParse(
|
||||||
|
// "&contentRating[]=suggestive&contentRating[]=safe&contentRating[]=erotica&contentRating[]=pornographic");
|
||||||
|
// return ctnRating;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getPopularManga(MangaModel manga) async {
|
||||||
|
// int page = (20 * (manga.page - 1));
|
||||||
|
// final url =
|
||||||
|
// "https://api.mangadex.org/manga?limit=20&offset=$page&availableTranslatedLanguage[]=en&includes[]=cover_art${getMDXContentRating()}&order[followedCount]=desc";
|
||||||
|
// final datas = {"url": url, "headers": null};
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// List<String> data = MBridge.listParse(
|
||||||
|
// MBridge.jsonPathToString(res, r'$.data[*]', '_.').split("_."), 0);
|
||||||
|
// List<String> urlList = [];
|
||||||
|
// List<String> titleList = [];
|
||||||
|
// List<String> imageList = [];
|
||||||
|
// for (var i = 0; i < data.length; i++) {
|
||||||
|
// final expressionId =
|
||||||
|
// MBridge.regExp(r'$.data[a].id', r'\[a\]', "[$i]", 0, 1);
|
||||||
|
// final id = MBridge.jsonPathToString(res, expressionId, '_.');
|
||||||
|
// titleList.add(findTitle(res, i, manga.lang));
|
||||||
|
// urlList.add("/manga/$id");
|
||||||
|
// imageList.add(getCover(res, i, id));
|
||||||
|
// }
|
||||||
|
// manga.names = titleList;
|
||||||
|
// manga.urls = urlList;
|
||||||
|
// manga.images = imageList;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// MangaModel getChapters(
|
||||||
|
// MangaModel manga, int length, String paginatedChapterListA) {
|
||||||
|
// String scanlators = MBridge.stringParse("");
|
||||||
|
// String chapNames = MBridge.stringParse("");
|
||||||
|
// String chapDate = MBridge.stringParse("");
|
||||||
|
// String chapterUrl = MBridge.stringParse("");
|
||||||
|
// String paginatedChapterList = MBridge.stringParse(paginatedChapterListA);
|
||||||
|
// final dataList = MBridge.jsonPathToList(paginatedChapterList, r'$.data[*]');
|
||||||
|
// for (var res in dataList) {
|
||||||
|
// String scan = MBridge.stringParse("");
|
||||||
|
// final groups = MBridge.jsonPathToList(
|
||||||
|
// res, r'$.relationships[?@.id!="00e03853-1b96-4f41-9542-c71b8692033b"]');
|
||||||
|
// String chapName = MBridge.stringParse("");
|
||||||
|
// for (var element in groups) {
|
||||||
|
// final data = MBridge.getMapValue(element, "attributes", 1);
|
||||||
|
// if (data.isEmpty) {
|
||||||
|
// } else {
|
||||||
|
// final name = MBridge.getMapValue(data, "name", 0);
|
||||||
|
// scan += MBridge.stringParse("$name");
|
||||||
|
// final username = MBridge.getMapValue(data, "username", 0);
|
||||||
|
// if (username.isEmpty) {
|
||||||
|
// } else {
|
||||||
|
// if (scan.isEmpty) {
|
||||||
|
// scan += MBridge.stringParse("Uploaded by $username");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// if (scan.isEmpty) {
|
||||||
|
// scan = MBridge.stringParse("No Group");
|
||||||
|
// }
|
||||||
|
// final dataRes = MBridge.getMapValue(res, "attributes", 1);
|
||||||
|
// if (dataRes.isEmpty) {
|
||||||
|
// } else {
|
||||||
|
// final data = MBridge.getMapValue(res, "attributes", 1);
|
||||||
|
// final volume = MBridge.getMapValue(data, "volume", 0);
|
||||||
|
// if (volume.isEmpty) {
|
||||||
|
// } else {
|
||||||
|
// if (volume == "null") {
|
||||||
|
// } else {
|
||||||
|
// chapName = MBridge.stringParse("Vol.$volume ");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// final chapter = MBridge.getMapValue(data, "chapter", 0);
|
||||||
|
// if (chapter.isEmpty) {
|
||||||
|
// } else {
|
||||||
|
// if (chapter == "null") {
|
||||||
|
// } else {
|
||||||
|
// chapName += MBridge.stringParse("Ch.$chapter ");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// final title = MBridge.getMapValue(data, "title", 0);
|
||||||
|
// if (title.isEmpty) {
|
||||||
|
// } else {
|
||||||
|
// if (title == "null") {
|
||||||
|
// } else {
|
||||||
|
// if (chapName.isEmpty) {
|
||||||
|
// } else {
|
||||||
|
// chapName += MBridge.stringParse("- ");
|
||||||
|
// }
|
||||||
|
// chapName += MBridge.stringParse("$title");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// if (chapName.isEmpty) {
|
||||||
|
// chapName += MBridge.stringParse("Oneshot");
|
||||||
|
// }
|
||||||
|
// final date = MBridge.getMapValue(data, "publishAt", 0);
|
||||||
|
// final id = MBridge.getMapValue(res, "id", 0);
|
||||||
|
// chapterUrl += "._$id";
|
||||||
|
// chapDate += "._._$date";
|
||||||
|
// scanlators += "._$scan";
|
||||||
|
// chapNames += "._$chapName";
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// manga.chaptersDateUploads = MBridge.listParseDateTime(
|
||||||
|
// chapDate.split("._._"), "yyyy-MM-dd'T'HH:mm:ss+SSS", "en_US");
|
||||||
|
|
||||||
|
// manga.urls = chapterUrl.split("._");
|
||||||
|
// manga.chaptersScanlators = scanlators.split("._");
|
||||||
|
// manga.names = chapNames.split("._");
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getMangaDetail(MangaModel manga) async {
|
||||||
|
// final statusList = [
|
||||||
|
// {
|
||||||
|
// "ongoing": 0,
|
||||||
|
// "completed": 1,
|
||||||
|
// "hiatus": 2,
|
||||||
|
// "cancelled": 3,
|
||||||
|
// }
|
||||||
|
// ];
|
||||||
|
// final url =
|
||||||
|
// "https://api.mangadex.org${manga.link}?includes[]=cover_art&includes[]=author&includes[]=artist";
|
||||||
|
// final datas = {"url": url, "headers": null};
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// manga.author = MBridge.jsonPathToString(
|
||||||
|
// res, r'$..data.relationships[*].attributes.name', ', ');
|
||||||
|
|
||||||
|
// String expressionDescriptionA = r'$..data.attributes.description.en';
|
||||||
|
// String expressionDescription = MBridge.regExp(
|
||||||
|
// r'$..data.attributes.description[a]', r'\[a\]', ".${manga.lang}", 0, 1);
|
||||||
|
|
||||||
|
// String description = MBridge.jsonPathToString(res, expressionDescription, '');
|
||||||
|
// if (description.isEmpty) {
|
||||||
|
// description = MBridge.jsonPathToString(res, expressionDescriptionA, '');
|
||||||
|
// }
|
||||||
|
// manga.description = description;
|
||||||
|
// List<String> genres = [];
|
||||||
|
|
||||||
|
// final genre = MBridge.listParse(
|
||||||
|
// MBridge.jsonPathToString(
|
||||||
|
// res, r'$..data.attributes.tags[*].attributes.name.en', '.-')
|
||||||
|
// .split('.-'),
|
||||||
|
// 0);
|
||||||
|
// genres = genre;
|
||||||
|
// String contentRating =
|
||||||
|
// MBridge.jsonPathToString(res, r'$..data.attributes.contentRating', '');
|
||||||
|
// if (contentRating == "safe") {
|
||||||
|
// } else {
|
||||||
|
// genres.add(contentRating);
|
||||||
|
// }
|
||||||
|
// String publicationDemographic = MBridge.jsonPathToString(
|
||||||
|
// res, r'$..data.attributes.publicationDemographic', '');
|
||||||
|
// if (publicationDemographic == "null") {
|
||||||
|
// } else {
|
||||||
|
// genres.add(publicationDemographic);
|
||||||
|
// }
|
||||||
|
// manga.genre = genres;
|
||||||
|
// String statusRes =
|
||||||
|
// MBridge.jsonPathToString(res, r'$..data.attributes.status', '');
|
||||||
|
// manga.status = MBridge.parseStatus(statusRes, statusList);
|
||||||
|
// final mangaId = MBridge.listParse(manga.link.split('/'), 2)[0];
|
||||||
|
// final paginatedChapterList =
|
||||||
|
// await paginatedChapterListRequest(mangaId, 0, manga.lang);
|
||||||
|
// final chapterList =
|
||||||
|
// MBridge.jsonPathToString(paginatedChapterList, r'$.data[*]', '_.')
|
||||||
|
// .split('_.');
|
||||||
|
// int limit = MBridge.intParse(
|
||||||
|
// MBridge.jsonPathToString(paginatedChapterList, r'$.limit', ''));
|
||||||
|
// int offset = MBridge.intParse(
|
||||||
|
// MBridge.jsonPathToString(paginatedChapterList, r'$.offset', ''));
|
||||||
|
// int total = MBridge.intParse(
|
||||||
|
// MBridge.jsonPathToString(paginatedChapterList, r'$.total', ''));
|
||||||
|
// List<MangaModel> chapterListA = [];
|
||||||
|
// List<String> chapNames = [];
|
||||||
|
// List<String> scanlators = [];
|
||||||
|
// List<String> chapterUrl = [];
|
||||||
|
// List<String> chapterDate = [];
|
||||||
|
// final list = getChapters(
|
||||||
|
// manga, MBridge.intParse("${chapterList.length}"), paginatedChapterList);
|
||||||
|
// chapterListA.add(list);
|
||||||
|
// var hasMoreResults = (limit + offset) < total;
|
||||||
|
// while (hasMoreResults) {
|
||||||
|
// offset += limit;
|
||||||
|
// var newRequest =
|
||||||
|
// await paginatedChapterListRequest(mangaId, offset, manga.lang);
|
||||||
|
// int total =
|
||||||
|
// MBridge.intParse(MBridge.jsonPathToString(newRequest, r'$.total', ''));
|
||||||
|
// final chapterList =
|
||||||
|
// MBridge.jsonPathToString(paginatedChapterList, r'$.data[*]', '_.')
|
||||||
|
// .split('_.');
|
||||||
|
// final list = getChapters(
|
||||||
|
// manga, MBridge.intParse("${chapterList.length}"), newRequest);
|
||||||
|
// chapterListA.add(list);
|
||||||
|
// hasMoreResults = (limit + offset) < total;
|
||||||
|
// }
|
||||||
|
// for (var element in chapterListA) {
|
||||||
|
// int index = 0;
|
||||||
|
// for (var name in element.names) {
|
||||||
|
// if (name.isEmpty) {
|
||||||
|
// } else {
|
||||||
|
// chapNames.add(name);
|
||||||
|
// chapterUrl.add(element.urls[index]);
|
||||||
|
// chapterDate.add(element.chaptersDateUploads[index]);
|
||||||
|
// scanlators.add(element.chaptersScanlators[index]);
|
||||||
|
// }
|
||||||
|
// index++;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// manga.urls = chapterUrl;
|
||||||
|
// manga.chaptersDateUploads = chapterDate;
|
||||||
|
// manga.chaptersScanlators = scanlators;
|
||||||
|
// manga.names = chapNames;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getLatestUpdatesManga(MangaModel manga) async {
|
||||||
|
// int page = (20 * (manga.page - 1));
|
||||||
|
// final urll =
|
||||||
|
// "https://api.mangadex.org/chapter?limit=20&offset=$page&translatedLanguage[]=${manga.lang}&includeFutureUpdates=0&order[publishAt]=desc&includeFuturePublishAt=0&includeEmptyPages=0";
|
||||||
|
// final datas = {"url": urll, "headers": null};
|
||||||
|
// final ress = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (ress.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// final mangaIds = MBridge.listParse(
|
||||||
|
// MBridge.jsonPathToString(ress, r'$.data[*].relationships[*].id', '.--')
|
||||||
|
// .split('.--'),
|
||||||
|
// 3);
|
||||||
|
// String mangaa = MBridge.stringParse("");
|
||||||
|
// for (var id in mangaIds) {
|
||||||
|
// mangaa += "&ids[]=$id";
|
||||||
|
// }
|
||||||
|
// final newUrl =
|
||||||
|
// "https://api.mangadex.org/manga?includes[]=cover_art&limit=${mangaIds.length}${getMDXContentRating()}$mangaa";
|
||||||
|
// final datass = {"url": newUrl, "headers": null};
|
||||||
|
// final res = await MBridge.http(json.encode(datass), 0);
|
||||||
|
// List<String> data = MBridge.listParse(
|
||||||
|
// MBridge.jsonPathToString(res, r'$.data[*]', '_.').split("_."), 0);
|
||||||
|
// List<String> urlList = [];
|
||||||
|
// List<String> titleList = [];
|
||||||
|
// List<String> imageList = [];
|
||||||
|
// for (var i = 0; i < data.length; i++) {
|
||||||
|
// final expressionId =
|
||||||
|
// MBridge.regExp(r'$.data[a].id', r'\[a\]', "[$i]", 0, 1);
|
||||||
|
// final id = MBridge.jsonPathToString(res, expressionId, '_.');
|
||||||
|
// titleList.add(findTitle(res, i, manga.lang));
|
||||||
|
// urlList.add("/manga/$id");
|
||||||
|
// imageList.add(getCover(res, i, id));
|
||||||
|
// }
|
||||||
|
// manga.names = titleList;
|
||||||
|
// manga.urls = urlList;
|
||||||
|
// manga.images = imageList;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// searchManga(MangaModel manga) async {
|
||||||
|
// final url =
|
||||||
|
// "https://api.mangadex.org/manga?includes[]=cover_art&offset=0&limit=20&title=${manga.query}${getMDXContentRating()}&order[followedCount]=desc&availableTranslatedLanguage[]=${manga.lang}";
|
||||||
|
// final datas = {"url": url, "headers": null};
|
||||||
|
// final res = await MBridge.http(json.encode(datas), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// List<String> data = MBridge.listParse(
|
||||||
|
// MBridge.jsonPathToString(res, r'$.data[*]', '_.').split("_."), 0);
|
||||||
|
// List<String> urlList = [];
|
||||||
|
// List<String> titleList = [];
|
||||||
|
// List<String> imageList = [];
|
||||||
|
// for (var i = 0; i < data.length; i++) {
|
||||||
|
// final expressionId =
|
||||||
|
// MBridge.regExp(r'$.data[a].id', r'\[a\]', "[$i]", 0, 1);
|
||||||
|
// final id = MBridge.jsonPathToString(res, expressionId, '_.');
|
||||||
|
// titleList.add(findTitle(res, i, manga.lang));
|
||||||
|
// urlList.add("/manga/$id");
|
||||||
|
// imageList.add(getCover(res, i, id));
|
||||||
|
// }
|
||||||
|
// manga.names = titleList;
|
||||||
|
// manga.urls = urlList;
|
||||||
|
// manga.images = imageList;
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getChapterUrl(MangaModel manga) async {
|
||||||
|
// final url = "https://api.mangadex.org/at-home/server/${manga.link}";
|
||||||
|
// final data = {"url": url, "headers": null};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
// final host = MBridge.jsonPathToString(res, r'$.baseUrl', '');
|
||||||
|
// final hash = MBridge.jsonPathToString(res, r'$.chapter.hash', '');
|
||||||
|
// List<String> pageSuffix = [];
|
||||||
|
// List<String> pageUrls = [];
|
||||||
|
// List<String> chapterDatas = MBridge.listParse(
|
||||||
|
// MBridge.jsonPathToString(res, r'$.chapter.data[*]', '.--').split('.--'),
|
||||||
|
// 0);
|
||||||
|
// for (var d in chapterDatas) {
|
||||||
|
// pageSuffix.add("/data/$hash/$d");
|
||||||
|
// }
|
||||||
|
// for (var url in pageSuffix) {
|
||||||
|
// pageUrls.add("$host$url");
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return pageUrls;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Future<String> paginatedChapterListRequest(
|
||||||
|
// String mangaId, int offset, String lang) async {
|
||||||
|
// final url =
|
||||||
|
// 'https://api.mangadex.org/manga/$mangaId/feed?limit=500&offset=$offset&includes[]=user&includes[]=scanlation_group&order[volume]=desc&order[chapter]=desc&translatedLanguage[]=$lang&includeFuturePublishAt=0&includeEmptyPages=0${getMDXContentRating()}';
|
||||||
|
// final datas = {"url": url, "headers": null};
|
||||||
|
// return await MBridge.http(json.encode(datas), 0);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// String findTitle(String dataRes, int mangaIndex, String lang) {
|
||||||
|
// String expressionAltTitlesA = MBridge.regExp(
|
||||||
|
// r'$.data[a].attributes.altTitles[b]', r'\[a\]', "[$mangaIndex]", 0, 1);
|
||||||
|
// String expressionAltTitles =
|
||||||
|
// MBridge.regExp(expressionAltTitlesA, r'\[b\]', "[*].$lang", 0, 1);
|
||||||
|
|
||||||
|
// String altTitles =
|
||||||
|
// MBridge.jsonPathToString(dataRes, expressionAltTitles, '_.');
|
||||||
|
|
||||||
|
// if (altTitles.isEmpty) {
|
||||||
|
// expressionAltTitles = MBridge.regExp(
|
||||||
|
// r'$.data[a].attributes.altTitles[?@.en].en',
|
||||||
|
// r'\[a\]',
|
||||||
|
// "[$mangaIndex]",
|
||||||
|
// 0,
|
||||||
|
// 1);
|
||||||
|
// altTitles = MBridge.jsonPathToString(dataRes, expressionAltTitles, '_.');
|
||||||
|
// }
|
||||||
|
// List<String> dataAltTitles = MBridge.listParse(altTitles.split('_.'), 0);
|
||||||
|
// final expressionTitle = MBridge.regExp(
|
||||||
|
// r'$.data[a].attributes.title.en', r'\[a\]', "[$mangaIndex]", 0, 1);
|
||||||
|
// final title = MBridge.jsonPathToString(dataRes, expressionTitle, '_.');
|
||||||
|
// if (title.isEmpty) {
|
||||||
|
// return dataAltTitles[0];
|
||||||
|
// } else {
|
||||||
|
// return title;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// String getCover(String dataRes, int mangaIndex, String mangaId) {
|
||||||
|
// final expressionRelationAll = MBridge.regExp(
|
||||||
|
// r'$.data[a].relationships[*]', r'\[a\]', "[$mangaIndex]", 0, 1);
|
||||||
|
// List<String> relationDatas = MBridge.listParse(
|
||||||
|
// MBridge.jsonPathToString(dataRes, expressionRelationAll, '_.')
|
||||||
|
// .split("_."),
|
||||||
|
// 0);
|
||||||
|
// String coverFileName = MBridge.stringParse("");
|
||||||
|
// for (var j = 0; j < relationDatas.length; j++) {
|
||||||
|
// final expressionData = MBridge.regExp(
|
||||||
|
// r'$.data[a].relationships[b]', r'\[a\]', "[$mangaIndex]", 0, 1);
|
||||||
|
// final expressionRelationType =
|
||||||
|
// MBridge.regExp(expressionData, r'\[b\]', "[$j].type", 0, 1);
|
||||||
|
// final relationType =
|
||||||
|
// MBridge.jsonPathToString(dataRes, expressionRelationType, '');
|
||||||
|
// if (relationType == "cover_art") {
|
||||||
|
// if (coverFileName.isEmpty) {
|
||||||
|
// final expressionRelationCoverFile = MBridge.regExp(
|
||||||
|
// expressionData, r'\[b\]', "[$j].attributes.fileName", 0, 1);
|
||||||
|
// coverFileName =
|
||||||
|
// MBridge.jsonPathToString(dataRes, expressionRelationCoverFile, '');
|
||||||
|
|
||||||
|
// coverFileName =
|
||||||
|
// "https://uploads.mangadex.org/covers/$mangaId/$coverFileName";
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// return coverFileName;
|
||||||
|
// }
|
||||||
216
src/all/mangadex/sources.dart
Normal file
216
src/all/mangadex/sources.dart
Normal file
@@ -0,0 +1,216 @@
|
|||||||
|
import '../../../model/source.dart';
|
||||||
|
|
||||||
|
const apiUrl = 'https://api.mangadex.org';
|
||||||
|
const baseUrl = 'https://mangadex.org';
|
||||||
|
const isNsfw = true;
|
||||||
|
const mangadexVersion = "0.0.1";
|
||||||
|
const mangadexSourceCodeUrl =
|
||||||
|
"https://raw.githubusercontent.com/kodjodevf/External-source-test/main/src/all/mangadex/mangadex-v$mangadexVersion.dart";
|
||||||
|
const iconUrl = '';
|
||||||
|
List<Source> get mangaDexSourcesList => _mangaDexSourcesList;
|
||||||
|
List<Source> _mangaDexSourcesList = [
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'en',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'ar',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'pt',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'pt-br',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'it',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'ru',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'es',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'es-419',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'id',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'hi',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'de',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'ja',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'tr',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'pl',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'zh',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'zh-hk',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
Source(
|
||||||
|
name: 'MangaDex',
|
||||||
|
apiUrl: apiUrl,
|
||||||
|
baseUrl: baseUrl,
|
||||||
|
lang: 'fr',
|
||||||
|
typeSource: "mangadex",
|
||||||
|
iconUrl: iconUrl,
|
||||||
|
dateFormat: "yyyy-MM-dd'T'HH:mm:ss+SSS",
|
||||||
|
isNsfw: isNsfw,
|
||||||
|
dateFormatLocale: 'en_Us',
|
||||||
|
version: mangadexVersion,
|
||||||
|
sourceCodeUrl: mangadexSourceCodeUrl),
|
||||||
|
];
|
||||||
210
src/en/mangahere/mangahere-v0.0.1.dart
Normal file
210
src/en/mangahere/mangahere-v0.0.1.dart
Normal file
@@ -0,0 +1,210 @@
|
|||||||
|
// import 'dart:convert';
|
||||||
|
// import 'package:bridge_lib/bridge_lib.dart';
|
||||||
|
|
||||||
|
// searchManga(MangaModel manga) async {
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.baseUrl}/search?title=${manga.query}&page=${manga.page}";
|
||||||
|
|
||||||
|
// final data = {"url": url, "headers": headers};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 1);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// manga.names = MBridge.xpath(
|
||||||
|
// res, '//*[contains(@class, "manga-list-4-list")]/li/a/@title', '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// manga.images = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[contains(@class, "manga-list-4-list")]/li/a/img[@class="manga-list-4-cover"]/@src',
|
||||||
|
// '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// manga.urls = MBridge.xpath(
|
||||||
|
// res, '//*[contains(@class, "manga-list-4-list")]/li/a/@href', '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getLatestUpdatesManga(MangaModel manga) async {
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.baseUrl}/directory/${manga.page}.htm?latest";
|
||||||
|
|
||||||
|
// final data = {"url": url, "headers": headers};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 1);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// manga.names = MBridge.xpath(
|
||||||
|
// res, '//*[ contains(@class, "manga-list-1-list")]/li/a/@title', '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// manga.images = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[ contains(@class, "manga-list-1-list")]/li/a/img[@class="manga-list-1-cover"]/@src',
|
||||||
|
// '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// manga.urls = MBridge.xpath(
|
||||||
|
// res, '//*[ contains(@class, "manga-list-1-list")]/li/a/@href', '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getMangaDetail(MangaModel manga) async {
|
||||||
|
// final statusList = [
|
||||||
|
// {
|
||||||
|
// "Ongoing": 0,
|
||||||
|
// "Completed": 1,
|
||||||
|
// }
|
||||||
|
// ];
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.baseUrl}/${manga.link}";
|
||||||
|
// final data = {"url": url, "headers": headers};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
// manga.author =
|
||||||
|
// MBridge.xpath(res, '//*[@class="detail-info-right-say"]/a/text()', '');
|
||||||
|
// manga.description =
|
||||||
|
// MBridge.xpath(res, '//*[@class="fullcontent"]/text()', '');
|
||||||
|
// final status = MBridge.xpath(
|
||||||
|
// res, '//*[@class="detail-info-right-title-tip"]/text()', '');
|
||||||
|
// manga.status = MBridge.parseStatus(status, statusList);
|
||||||
|
// manga.genre = MBridge.xpath(
|
||||||
|
// res, '//*[@class="detail-info-right-tag-list"]/a/text()', '._')
|
||||||
|
// .split("._");
|
||||||
|
// manga.urls =
|
||||||
|
// MBridge.xpath(res, '//*[@class="detail-main-list"]/li/a/@href', '._')
|
||||||
|
// .split("._");
|
||||||
|
// manga.names = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="detail-main-list"]/li/a/div/p[@class="title3"]/text()',
|
||||||
|
// '._')
|
||||||
|
// .split("._");
|
||||||
|
// final chapterDates = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[@class="detail-main-list"]/li/a/div/p[@class="title2"]/text()',
|
||||||
|
// '._')
|
||||||
|
// .split("._");
|
||||||
|
|
||||||
|
// manga.chaptersDateUploads = MBridge.listParse(
|
||||||
|
// MBridge.listParseDateTime(
|
||||||
|
// chapterDates, manga.dateFormat, manga.dateFormatLocale),
|
||||||
|
// 0);
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getPopularManga(MangaModel manga) async {
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.baseUrl}/directory/${manga.page}.htm";
|
||||||
|
|
||||||
|
// final data = {"url": url, "headers": headers};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 1);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// manga.names = MBridge.xpath(
|
||||||
|
// res, '//*[ contains(@class, "manga-list-1-list")]/li/a/@title', '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// manga.images = MBridge.xpath(
|
||||||
|
// res,
|
||||||
|
// '//*[ contains(@class, "manga-list-1-list")]/li/a/img[@class="manga-list-1-cover"]/@src',
|
||||||
|
// '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// manga.urls = MBridge.xpath(
|
||||||
|
// res, '//*[ contains(@class, "manga-list-1-list")]/li/a/@href', '-.')
|
||||||
|
// .split('-.');
|
||||||
|
// return manga;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// getChapterUrl(MangaModel manga) async {
|
||||||
|
// final headers = getHeader(manga.baseUrl);
|
||||||
|
// final url = "${manga.baseUrl}${manga.link}";
|
||||||
|
// final data = {"url": url, "headers": headers};
|
||||||
|
// final res = await MBridge.http(json.encode(data), 0);
|
||||||
|
// if (res.isEmpty) {
|
||||||
|
// return [];
|
||||||
|
// }
|
||||||
|
// final pages = MBridge.xpath(res, "//body/div/div/span/a/text()", "._");
|
||||||
|
// List<String> pageUrls = [];
|
||||||
|
// if (pages.isEmpty) {
|
||||||
|
// final script = MBridge.xpath(res,
|
||||||
|
// "//script[contains(text(),'function(p,a,c,k,e,d)')]/text()", "")
|
||||||
|
// .replaceAll("eval", "");
|
||||||
|
// String deobfuscatedScript = MBridge.evalJs(script);
|
||||||
|
// int a = deobfuscatedScript.indexOf("newImgs=['") + 10;
|
||||||
|
// int b = deobfuscatedScript.indexOf("'];");
|
||||||
|
// List<String> urls =
|
||||||
|
// MBridge.listParse(deobfuscatedScript.substring(a, b).split("','"), 0);
|
||||||
|
// for (var url in urls) {
|
||||||
|
// pageUrls.add("https:$url");
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// final pagesNumberList = MBridge.listParse(pages.split("._"), 0);
|
||||||
|
// //manga.status objext is used to parse pagesNumber value to int
|
||||||
|
// manga.status =
|
||||||
|
// MBridge.intParse(pagesNumberList[pagesNumberList.length - 2]);
|
||||||
|
// int secretKeyScriptLocation = res.indexOf("eval(function(p,a,c,k,e,d)");
|
||||||
|
// int secretKeyScriptEndLocation =
|
||||||
|
// res.indexOf("</script>", secretKeyScriptLocation);
|
||||||
|
// String secretKeyScript = res
|
||||||
|
// .substring(secretKeyScriptLocation, secretKeyScriptEndLocation)
|
||||||
|
// .replaceAll("eval", "");
|
||||||
|
// String secretKeyDeobfuscatedScript = MBridge.evalJs(secretKeyScript);
|
||||||
|
// int secretKeyStartLoc = secretKeyDeobfuscatedScript.indexOf("'");
|
||||||
|
// int secretKeyEndLoc = secretKeyDeobfuscatedScript.indexOf(";");
|
||||||
|
|
||||||
|
// String secretKey = secretKeyDeobfuscatedScript.substring(
|
||||||
|
// secretKeyStartLoc, secretKeyEndLoc);
|
||||||
|
// int chapterIdStartLoc = res.indexOf("chapterid");
|
||||||
|
// String chapterId = res.substring(
|
||||||
|
// chapterIdStartLoc + 11, res.indexOf(";", chapterIdStartLoc));
|
||||||
|
// String pageBase = url.substring(0, url.lastIndexOf("/"));
|
||||||
|
// for (int i = 1; i <= manga.status; i++) {
|
||||||
|
// String pageLink =
|
||||||
|
// "$pageBase/chapterfun.ashx?cid=$chapterId&page=$i&key=$secretKey";
|
||||||
|
// String responseText = MBridge.stringParse("");
|
||||||
|
// for (int tr = 1; tr <= 3; tr++) {
|
||||||
|
// if (responseText.isEmpty) {
|
||||||
|
// final headers = {
|
||||||
|
// "Referer": url,
|
||||||
|
// "Accept": "*/*",
|
||||||
|
// "Accept-Language": "en-US,en;q=0.9",
|
||||||
|
// "Connection": "keep-alive",
|
||||||
|
// "Host": "www.mangahere.cc",
|
||||||
|
// "X-Requested-With": "XMLHttpRequest"
|
||||||
|
// };
|
||||||
|
// final data = {"url": pageLink, "headers": headers};
|
||||||
|
// final response = await MBridge.http(json.encode(data), 0);
|
||||||
|
// responseText = MBridge.stringParse(response);
|
||||||
|
|
||||||
|
// if (responseText.isEmpty) {
|
||||||
|
// secretKey = "";
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// String deobfuscatedScript =
|
||||||
|
// MBridge.evalJs(responseText.replaceAll("eval", ""));
|
||||||
|
|
||||||
|
// int baseLinkStartPos = deobfuscatedScript.indexOf("pix=") + 5;
|
||||||
|
// int baseLinkEndPos =
|
||||||
|
// deobfuscatedScript.indexOf(";", baseLinkStartPos) - 1;
|
||||||
|
// String baseLink =
|
||||||
|
// deobfuscatedScript.substring(baseLinkStartPos, baseLinkEndPos);
|
||||||
|
|
||||||
|
// int imageLinkStartPos = deobfuscatedScript.indexOf("pvalue=") + 9;
|
||||||
|
// int imageLinkEndPos = deobfuscatedScript.indexOf("\"", imageLinkStartPos);
|
||||||
|
// String imageLink =
|
||||||
|
// deobfuscatedScript.substring(imageLinkStartPos, imageLinkEndPos);
|
||||||
|
// pageUrls.add("https:$baseLink$imageLink");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// return pageUrls;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Map<String, String> getHeader(String url) {
|
||||||
|
// final headers = {'Referer': '$url/', "Cookie": "isAdult=1"};
|
||||||
|
// return headers;
|
||||||
|
// }
|
||||||
17
src/en/mangahere/source.dart
Normal file
17
src/en/mangahere/source.dart
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
import '../../../model/source.dart';
|
||||||
|
|
||||||
|
Source get mangahereSource => _mangahereSource;
|
||||||
|
const mangahereVersion = "0.0.1";
|
||||||
|
const mangahereSourceCodeUrl =
|
||||||
|
"https://raw.githubusercontent.com/kodjodevf/External-source-test/main/src/en/mangahere/mangahere-v$mangahereVersion.dart";
|
||||||
|
Source _mangahereSource = Source(
|
||||||
|
name: "MangaHere",
|
||||||
|
baseUrl: "http://www.mangahere.cc",
|
||||||
|
lang: "en",
|
||||||
|
typeSource: "single",
|
||||||
|
iconUrl: '',
|
||||||
|
sourceCodeUrl: mangahereSourceCodeUrl,
|
||||||
|
version: mangahereVersion,
|
||||||
|
dateFormat: "MMM dd,yyyy",
|
||||||
|
dateFormatLocale: "en",
|
||||||
|
);
|
||||||
Reference in New Issue
Block a user