mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 02:41:39 +00:00
fix
This commit is contained in:
@@ -76,8 +76,9 @@ class AnimeToast extends MProvider {
|
||||
} else {
|
||||
elements = document.select("#multi_link_tab1");
|
||||
}
|
||||
|
||||
for (var element in elements) {
|
||||
final episodeElement = element.selectFirst("div.tab-pane a");
|
||||
final episodeElement = element.selectFirst("a");
|
||||
final epT = episodeElement.text;
|
||||
if (epT.contains(":") || epT.contains("-")) {
|
||||
final url = episodeElement.attr("href");
|
||||
@@ -92,7 +93,7 @@ class AnimeToast extends MProvider {
|
||||
episodesList.add(ep);
|
||||
}
|
||||
} else {
|
||||
final episodeElements = element.select("div.tab-pane a");
|
||||
final episodeElements = element.select("a");
|
||||
for (var epElement in episodeElements) {
|
||||
MChapter ep = MChapter();
|
||||
ep.name = epElement.text;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import '../../../../../model/source.dart';
|
||||
|
||||
Source get animetoast => _animetoast;
|
||||
const _animetoastVersion = "0.0.15";
|
||||
const _animetoastVersion = "0.0.2";
|
||||
const _animetoastCodeUrl =
|
||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/anime/src/de/animetoast/animetoast.dart";
|
||||
Source _animetoast = Source(
|
||||
|
||||
@@ -7,7 +7,7 @@ const mangayomiSources = [{
|
||||
"typeSource": "single",
|
||||
"isManga": false,
|
||||
"isNsfw": false,
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.25",
|
||||
"dateFormat": "",
|
||||
"dateFormatLocale": "",
|
||||
"pkgPath": "anime/src/en/allanime.js"
|
||||
@@ -172,7 +172,7 @@ class DefaultExtension extends MProvider {
|
||||
for (const vid of vids) {
|
||||
videos.push(vid);
|
||||
}
|
||||
} else if (["vidstreaming", "https://gogo", "playgo1.cc", "playtaku"].some(element => videoUrl.includes(element)) && altHosterSelection.some(element => 'vidstreaming' === element)) {
|
||||
} else if (["vidstreaming", "https://gogo", "playgo1.cc", "playtaku", "vidcloud"].some(element => videoUrl.includes(element)) && altHosterSelection.some(element => 'vidstreaming' === element)) {
|
||||
const vids = await gogoCdnExtractor(videoUrl);
|
||||
for (const vid of vids) {
|
||||
videos.push(vid);
|
||||
@@ -182,7 +182,7 @@ class DefaultExtension extends MProvider {
|
||||
for (const vid of vids) {
|
||||
videos.push(vid);
|
||||
}
|
||||
} else if (videoUrl.includes("ok.ru") && altHosterSelection.some(element => 'okru' === element)) {
|
||||
} else if (["ok.ru", "okru"].some(element => videoUrl.includes(element)) && altHosterSelection.some(element => 'okru' === element)) {
|
||||
const vids = await okruExtractor(videoUrl);
|
||||
for (const vid of vids) {
|
||||
videos.push(vid);
|
||||
@@ -197,6 +197,16 @@ class DefaultExtension extends MProvider {
|
||||
for (const vid of vids) {
|
||||
videos.push(vid);
|
||||
}
|
||||
} else if (["filemoon", "moonplayer"].some(element => videoUrl.includes(element)) && altHosterSelection.some(element => 'filemoon' === element)) {
|
||||
const vids = await filemoonExtractor(videoUrl);
|
||||
for (const vid of vids) {
|
||||
videos.push(vid);
|
||||
}
|
||||
} else if (videoUrl.includes("wish") && altHosterSelection.some(element => 'streamwish' === element)) {
|
||||
const vids = await streamwishExtractor(videoUrl);
|
||||
for (const vid of vids) {
|
||||
videos.push(vid);
|
||||
}
|
||||
}
|
||||
}
|
||||
return this.sortVideos(videos);
|
||||
@@ -280,7 +290,7 @@ class DefaultExtension extends MProvider {
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "preferred_hoster",
|
||||
"key": "preferred_hoster_",
|
||||
"listPreference": {
|
||||
"title": "Preferred Video Server",
|
||||
"summary": "",
|
||||
@@ -288,17 +298,21 @@ class DefaultExtension extends MProvider {
|
||||
"entries": [
|
||||
"Ac", "Ak", "Kir", "Rab", "Luf-mp4",
|
||||
"Si-Hls", "S-mp4", "Ac-Hls", "Uv-mp4", "Pn-Hls",
|
||||
"vidstreaming", "okru", "mp4upload", "streamlare", "doodstream"
|
||||
"vidstreaming", "okru", "mp4upload", "streamlare", "doodstream",
|
||||
"filemoon",
|
||||
"streamwish"
|
||||
],
|
||||
"entryValues": [
|
||||
"entryValues_": [
|
||||
"Ac", "Ak", "Kir", "Rab", "Luf-mp4",
|
||||
"Si-Hls", "S-mp4", "Ac-Hls", "Uv-mp4", "Pn-Hls",
|
||||
"vidstreaming", "okru", "mp4upload", "streamlare", "doodstream"
|
||||
"vidstreaming", "okru", "mp4upload", "streamlare", "doodstream",
|
||||
"filemoon",
|
||||
"streamwish"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"key": "alt_hoster_selection",
|
||||
"key": "alt_hoster_selection_",
|
||||
"multiSelectListPreference": {
|
||||
"title": "Enable/Disable Alternative Hosts",
|
||||
"summary": "",
|
||||
@@ -308,7 +322,9 @@ class DefaultExtension extends MProvider {
|
||||
"okru",
|
||||
"mp4upload",
|
||||
"streamlare",
|
||||
"doodstream"
|
||||
"doodstream",
|
||||
"filemoon",
|
||||
"streamwish"
|
||||
],
|
||||
"entryValues": [
|
||||
"player",
|
||||
@@ -316,7 +332,9 @@ class DefaultExtension extends MProvider {
|
||||
"okru",
|
||||
"mp4upload",
|
||||
"streamlare",
|
||||
"doodstream"
|
||||
"doodstream",
|
||||
"filemoon",
|
||||
"streamwish"
|
||||
],
|
||||
"values": [
|
||||
"player",
|
||||
@@ -324,7 +342,9 @@ class DefaultExtension extends MProvider {
|
||||
"okru",
|
||||
"mp4upload",
|
||||
"streamlare",
|
||||
"doodstream"
|
||||
"doodstream",
|
||||
"filemoon",
|
||||
"streamwish"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user