mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 19:01:15 +00:00
Fix Aniwave use serverName instead url
This commit is contained in:
@@ -186,9 +186,10 @@ class Aniwave extends MProvider {
|
|||||||
final vidHtml = vidH.outerHtml;
|
final vidHtml = vidH.outerHtml;
|
||||||
final type = xpath(vidHtml, '//div/@data-type').first;
|
final type = xpath(vidHtml, '//div/@data-type').first;
|
||||||
final serversIds = xpath(vidHtml, '//li/@data-link-id');
|
final serversIds = xpath(vidHtml, '//li/@data-link-id');
|
||||||
|
final serversNames = xpath(vidHtml, '//li/text()');
|
||||||
for (int i = 0; i < serversIds.length; i++) {
|
for (int i = 0; i < serversIds.length; i++) {
|
||||||
final serverId = serversIds[i];
|
final serverId = serversIds[i];
|
||||||
|
final serverName = serversNames[i].toLowerCase();
|
||||||
final encrypt = vrfEncrypt(serverId);
|
final encrypt = vrfEncrypt(serverId);
|
||||||
final vrf = "vrf=${Uri.encodeComponent(encrypt)}";
|
final vrf = "vrf=${Uri.encodeComponent(encrypt)}";
|
||||||
final res =
|
final res =
|
||||||
@@ -201,19 +202,19 @@ class Aniwave extends MProvider {
|
|||||||
final hosterSelection = preferenceHosterSelection(source.id);
|
final hosterSelection = preferenceHosterSelection(source.id);
|
||||||
final typeSelection = preferenceTypeSelection(source.id);
|
final typeSelection = preferenceTypeSelection(source.id);
|
||||||
if (typeSelection.contains(type.toLowerCase())) {
|
if (typeSelection.contains(type.toLowerCase())) {
|
||||||
if (url.contains("vidplay") || url.contains("mcloud")) {
|
if (serverName.contains("vidplay") || url.contains("mcloud")) {
|
||||||
final hosterName =
|
final hosterName =
|
||||||
url.contains("vidplay") ? "VidPlay" : "MyCloud";
|
serverName.contains("vidplay") ? "VidPlay" : "MyCloud";
|
||||||
if (hosterSelection.contains(hosterName.toLowerCase())) {
|
if (hosterSelection.contains(hosterName.toLowerCase())) {
|
||||||
a = await vidsrcExtractor(url, hosterName, type);
|
a = await vidsrcExtractor(url, hosterName, type);
|
||||||
}
|
}
|
||||||
} else if (url.contains("mp4upload") &&
|
} else if (serverName.contains("mp4upload") &&
|
||||||
hosterSelection.contains("mp4upload")) {
|
hosterSelection.contains("mp4upload")) {
|
||||||
a = await mp4UploadExtractor(url, null, "", type);
|
a = await mp4UploadExtractor(url, null, "", type);
|
||||||
} else if (url.contains("streamtape") &&
|
} else if (serverName.contains("streamtape") &&
|
||||||
hosterSelection.contains("streamtape")) {
|
hosterSelection.contains("streamtape")) {
|
||||||
a = await streamTapeExtractor(url, "StreamTape - $type");
|
a = await streamTapeExtractor(url, "StreamTape - $type");
|
||||||
} else if (url.contains("filemoon") &&
|
} else if (serverName.contains("filemoon") &&
|
||||||
hosterSelection.contains("filemoon")) {
|
hosterSelection.contains("filemoon")) {
|
||||||
a = await filemoonExtractor(url, "", type);
|
a = await filemoonExtractor(url, "", type);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../../../../model/source.dart';
|
import '../../../../../model/source.dart';
|
||||||
|
|
||||||
Source get aniwave => _aniwave;
|
Source get aniwave => _aniwave;
|
||||||
const _aniwaveVersion = "0.0.7";
|
const _aniwaveVersion = "0.0.75";
|
||||||
const _aniwaveCodeUrl =
|
const _aniwaveCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/aniwave/aniwave.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/en/aniwave/aniwave.dart";
|
||||||
Source _aniwave = Source(
|
Source _aniwave = Source(
|
||||||
|
|||||||
Reference in New Issue
Block a user