This commit is contained in:
kodjomoustapha
2024-07-17 17:56:08 +01:00
parent 6f62c353d0
commit 814045f689
5 changed files with 137 additions and 141 deletions

View File

@@ -10,6 +10,6 @@ Source _mangairoSource = Source(
typeSource: "mangabox", typeSource: "mangabox",
iconUrl: iconUrl:
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangabox/src/mangairo/icon.png", "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangabox/src/mangairo/icon.png",
dateFormat: "dd-MM-yyyy", dateFormat: "MMM-dd-yy",
dateFormatLocale: "en", dateFormatLocale: "en",
); );

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -1,13 +0,0 @@
import '../../../../../../model/source.dart';
Source get sushiscanfrSource => _sushiscanfrSource;
Source _sushiscanfrSource = Source(
name: "Sushiscan.fr",
baseUrl: "https://sushiscan.fr",
lang: "fr",
isNsfw:false,
typeSource: "mangareader",
iconUrl: "https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/$branchName/dart/manga/multisrc/mangareader/src/sushiscanfr/icon.png",
dateFormat:"MMMM d, yyyy",
dateFormatLocale:"fr"
);

View File

@@ -7,7 +7,7 @@ const mangayomiSources = [{
"typeSource": "single", "typeSource": "single",
"isManga": false, "isManga": false,
"isNsfw": false, "isNsfw": false,
"version": "0.0.1", "version": "0.0.15",
"dateFormat": "", "dateFormat": "",
"dateFormatLocale": "", "dateFormatLocale": "",
"pkgPath": "anime/src/de/aniworld.js" "pkgPath": "anime/src/de/aniworld.js"
@@ -132,6 +132,7 @@ class DefaultExtension extends MProvider {
const hosterSelection = preference.get("hoster_selection"); const hosterSelection = preference.get("hoster_selection");
const videos = []; const videos = [];
for (const element of redirectlink) { for (const element of redirectlink) {
try {
const langkey = element.attr("data-lang-key"); const langkey = element.attr("data-lang-key");
let language = ""; let language = "";
if (langkey.includes("3")) { if (langkey.includes("3")) {
@@ -143,6 +144,7 @@ class DefaultExtension extends MProvider {
} }
const redirectgs = baseUrl + element.selectFirst("a.watchEpisode").attr("href"); const redirectgs = baseUrl + element.selectFirst("a.watchEpisode").attr("href");
const hoster = element.selectFirst("a h4").text; const hoster = element.selectFirst("a h4").text;
if (hoster == "Streamtape" && hosterSelection.includes("Streamtape")) { if (hoster == "Streamtape" && hosterSelection.includes("Streamtape")) {
const body = (await new Client().get(redirectgs)).body; const body = (await new Client().get(redirectgs)).body;
const quality = `Streamtape ${language}`; const quality = `Streamtape ${language}`;
@@ -165,6 +167,9 @@ class DefaultExtension extends MProvider {
videos.push({ url: match[0], originalUrl: match[0], quality }); videos.push({ url: match[0], originalUrl: match[0], quality });
} }
} }
} catch (_) {
}
} }
return this.sortVideos(videos); return this.sortVideos(videos);
} }

View File

@@ -7,7 +7,7 @@ const mangayomiSources = [{
"typeSource": "single", "typeSource": "single",
"isManga": false, "isManga": false,
"isNsfw": false, "isNsfw": false,
"version": "0.0.15", "version": "0.0.2",
"dateFormat": "", "dateFormat": "",
"dateFormatLocale": "", "dateFormatLocale": "",
"pkgPath": "anime/src/en/allanime.js" "pkgPath": "anime/src/en/allanime.js"
@@ -371,6 +371,7 @@ class AllAnimeExtractor {
} }
const linkJson = JSON.parse(resp.body); const linkJson = JSON.parse(resp.body);
for (const link of linkJson.links) { for (const link of linkJson.links) {
try {
const subtitles = []; const subtitles = [];
if (link.subtitles && link.subtitles.length > 0) { if (link.subtitles && link.subtitles.length > 0) {
subtitles.push(...link.subtitles.map(sub => { subtitles.push(...link.subtitles.map(sub => {
@@ -474,6 +475,9 @@ class AllAnimeExtractor {
videoList.push(...videos); videoList.push(...videos);
} }
} }
} catch (_) {
}
} }
return videoList; return videoList;
} }