mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
New source (multi Batoto), some code refactor
This commit is contained in:
133
manga/src/all/batoto/sources.dart
Normal file
133
manga/src/all/batoto/sources.dart
Normal file
@@ -0,0 +1,133 @@
|
||||
import '../../../../model/source.dart';
|
||||
import '../../../../utils/utils.dart';
|
||||
|
||||
const batotoVersion = "0.0.1";
|
||||
const batotoSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/batoto/batoto-v$batotoVersion.dart";
|
||||
|
||||
String _iconUrl = getIconUrl("batoto", "all");
|
||||
const baseUrl = 'https://batoto.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: 'Batoto',
|
||||
baseUrl: baseUrl,
|
||||
lang: e,
|
||||
typeSource: "batoto",
|
||||
iconUrl: _iconUrl,
|
||||
dateFormat: "MMM dd,yyyy",
|
||||
isNsfw: isNsfw,
|
||||
dateFormatLocale: "en",
|
||||
version: batotoVersion,
|
||||
appMinVerReq: "0.0.43",
|
||||
sourceCodeUrl: batotoSourceCodeUrl))
|
||||
.toList();
|
||||
Reference in New Issue
Block a user