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

View File

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