Fix: Batoto(All) fetch page list

This commit is contained in:
kodjomoustapha
2024-01-10 11:37:05 +01:00
parent ad2a5787c4
commit 921ca6a38b
5 changed files with 1808 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,6 +8,7 @@ import 'multisrc/mangabox/sources.dart';
import 'multisrc/mangareader/sources.dart';
import 'multisrc/mmrcms/sources.dart';
import 'multisrc/nepnep/sources.dart';
import 'src/all/batoto/sources.dart';
import 'src/all/comick/sources.dart';
import 'src/all/mangadex/sources.dart';
import 'src/en/mangahere/source.dart';
@@ -22,7 +23,8 @@ void main() {
...heancmsSourcesList,
mangahereSource,
...nepnepSourcesList,
...mangaboxSourcesList
...mangaboxSourcesList,
...batotoSourcesList
];
final List<Map<String, dynamic>> jsonList =
sourcesList.map((source) => source.toJson()).toList();

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@@ -0,0 +1,132 @@
import '../../../../model/source.dart';
const _batotoVersion = "0.0.6";
const _batotoSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/manga/src/all/batoto/batoto.dart";
String _iconUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/manga/src/all/batoto/icon.png";
const _baseUrl = 'https://bato.to';
const _isNsfw = true;
List<String> _languages = [
"all",
"en",
"ar",
"bg",
"zh",
"cs",
"da",
"nl",
"fil",
"fi",
"fr",
"de",
"el",
"he",
"hi",
"hu",
"id",
"it",
"ja",
"ko",
"ms",
"pl",
"pt",
"pt-br",
"ro",
"ru",
"es",
"es-419",
"sv",
"th",
"tr",
"uk",
"vi",
"af",
"sq",
"am",
"hy",
"az",
"be",
"bn",
"bs",
"my",
"km",
"ca",
"ceb",
"zh-hk",
"zh-tw",
"hr",
"en-us",
"eo",
"et",
"fo",
"ka",
"gn",
"gu",
"ht",
"ha",
"is",
"ig",
"ga",
"jv",
"kn",
"kk",
"ku",
"ky",
"lo",
"lv",
"lt",
"lb",
"mk",
"mg",
"ml",
"mt",
"mi",
"mr",
"mn",
"ne",
"no",
"ny",
"ps",
"fa",
"rm",
"sm",
"sr",
"sh",
"st",
"sn",
"sd",
"si",
"sk",
"sl",
"so",
"sw",
"tg",
"ta",
"ti",
"to",
"tk",
"ur",
"uz",
"yo",
"zu",
"eu",
"pt-PT",
];
List<Source> get batotoSourcesList => _batotoSourcesList;
List<Source> _batotoSourcesList = _languages
.map((e) => Source(
name: 'Bato.to',
baseUrl: _baseUrl,
lang: e,
typeSource: "bato.to",
iconUrl: _iconUrl,
dateFormat: "MMM dd,yyyy",
isNsfw: _isNsfw,
dateFormatLocale: "en",
version: _batotoVersion,
sourceCodeUrl: _batotoSourceCodeUrl))
.toList();