Files
kodjodevf-mangayomi-extensions/manga/src/all/comick/sources.dart
kodjomoustapha b8c4c2c3c3 WIP
2023-10-30 19:05:35 +01:00

72 lines
1.2 KiB
Dart

import '../../../../model/source.dart';
import '../../../../utils/utils.dart';
const comickVersion = "0.0.35";
const comickSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/comick/comick-v$comickVersion.dart";
String iconUrl = getIconUrl("comickfun", "all");
const apiUrl = 'https://api.comick.fun';
const baseUrl = 'https://comick.app';
const isNsfw = true;
List<String> languages = [
"all",
"en",
"pt-br",
"ru",
"fr",
"es-419",
"pl",
"tr",
"it",
"es",
"id",
"hu",
"vi",
"zh-hk",
"ar",
"de",
"zh",
"ca",
"bg",
"th",
"fa",
"uk",
"mn",
"ro",
"he",
"ms",
"tl",
"ja",
"hi",
"my",
"ko",
"cs",
"pt",
"nl",
"sv",
"bn",
"no",
"lt",
"el",
"sr",
"da",
];
List<Source> get comickSourcesList => _comickSourcesList;
List<Source> _comickSourcesList = languages
.map((e) => Source(
name: 'Comick',
apiUrl: apiUrl,
baseUrl: baseUrl,
lang: e,
typeSource: "comick",
iconUrl: iconUrl,
dateFormat: "yyyy-MM-dd'T'HH:mm:ss'Z'",
isNsfw: isNsfw,
dateFormatLocale: "en",
version: comickVersion,
sourceCodeUrl: comickSourceCodeUrl))
.toList();