Files
kodjodevf-mangayomi-extensions/manga/src/all/comick/sources.dart
kodjomoustapha 5132ebd716 Refactor
2024-01-31 13:32:53 +01:00

72 lines
1.3 KiB
Dart

import '../../../../model/source.dart';
const _comickVersion = "0.0.65";
const _comickSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/manga/src/all/comick/comick.dart";
String _iconUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/manga/src/all/comick/icon.png";
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();