Aniwave (EN) : Added new domains

This commit is contained in:
kodjomoustapha
2023-12-30 19:16:10 +01:00
parent 1cdaf17b59
commit 16bce9309d
2 changed files with 9 additions and 5 deletions

View File

@@ -553,19 +553,23 @@ class Aniwave extends MProvider {
List<dynamic> getSourcePreferences(MSource source) {
return [
ListPreference(
key: "preferred_domain",
key: "preferred_domain1",
title: "Preferred domain",
summary: "",
valueIndex: 0,
entries: [
"aniwave.to",
"aniwave.bz",
"aniwave.ws"
"aniwave.ws",
"aniwave.li",
"aniwave.vc"
],
entryValues: [
"https://aniwave.to",
"https://aniwave.bz",
"https://aniwave.ws"
"https://aniwave.ws",
"https://aniwave.li",
"https://aniwave.vc"
]),
ListPreference(
key: "preferred_quality",
@@ -636,7 +640,7 @@ class Aniwave extends MProvider {
}
String preferenceBaseUrl(int sourceId) {
return getPreferenceValue(sourceId, "preferred_domain");
return getPreferenceValue(sourceId, "preferred_domain1");
}
List<String> preferenceHosterSelection(int sourceId) {

View File

@@ -1,7 +1,7 @@
import '../../../../model/source.dart';
Source get aniwave => _aniwave;
const _aniwaveVersion = "0.0.35";
const _aniwaveVersion = "0.0.4";
const _aniwaveCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/anime/src/en/aniwave/aniwave.dart";
Source _aniwave = Source(