mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
Refactor
This commit is contained in:
@@ -1,28 +1,19 @@
|
||||
import '../../../model/source.dart';
|
||||
import '../../../utils/utils.dart';
|
||||
import 'src/dopebox/dopebox.dart';
|
||||
import 'src/sflix/sflix.dart';
|
||||
|
||||
const dopeflixVersion = "0.0.2";
|
||||
const dopeflixSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/multisrc/dopeflix/dopeflix-v$dopeflixVersion.dart";
|
||||
const _dopeflixVersion = "0.0.2";
|
||||
const _dopeflixSourceCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/multisrc/dopeflix/dopeflix-v$_dopeflixVersion.dart";
|
||||
|
||||
List<Source> get dopeflixSourcesList => _dopeflixSourcesList;
|
||||
List<Source> _dopeflixSourcesList = [
|
||||
Source(
|
||||
name: "DopeBox",
|
||||
baseUrl: "https://dopebox.to",
|
||||
lang: "en",
|
||||
typeSource: "dopeflix",
|
||||
iconUrl: getIconUrl("dopebox", "en"),
|
||||
version: dopeflixVersion,
|
||||
isManga: false,
|
||||
sourceCodeUrl: dopeflixSourceCodeUrl),
|
||||
Source(
|
||||
name: "SFlix",
|
||||
baseUrl: "https://sflix.to",
|
||||
lang: "en",
|
||||
typeSource: "dopeflix",
|
||||
iconUrl: getIconUrl("sflix", "en"),
|
||||
version: dopeflixVersion,
|
||||
isManga: false,
|
||||
sourceCodeUrl: dopeflixSourceCodeUrl),
|
||||
];
|
||||
//DopeBox (EN)
|
||||
dopeboxSource,
|
||||
//SFlix (EN)
|
||||
sflixSource,
|
||||
]
|
||||
.map((e) => e
|
||||
..sourceCodeUrl = _dopeflixSourceCodeUrl
|
||||
..version = _dopeflixVersion)
|
||||
.toList();
|
||||
|
||||
Reference in New Issue
Block a user