fix AniWatch.to streamtape server label, fix Bato.to language

This commit is contained in:
kodjomoustapha
2023-09-20 14:39:30 +01:00
parent bb5110c416
commit cff62d0a3d
4 changed files with 16 additions and 10 deletions

View File

@@ -180,8 +180,8 @@ getVideoList(MangaModel anime) async {
a = await MBridge.rapidCloudExtractor(url, "Vidstreaming - $subDub");
} else if (name.contains("Vidcloud")) {
a = await MBridge.rapidCloudExtractor(url, "Vidcloud - $subDub");
} else if (name.contains("StreamTape - $subDub")) {
a = await MBridge.streamTapeExtractor(url);
} else if (name.contains("StreamTape")) {
a = await MBridge.streamTapeExtractor(url,"StreamTape - $subDub");
}
for (var vi in a) {
videos.add(vi);

View File

@@ -1,7 +1,7 @@
import '../../../../model/source.dart';
import '../../../../utils/utils.dart';
const aniwatchVersion = "0.0.14";
const aniwatchVersion = "0.0.15";
const aniwatchSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/en/aniwatch/aniwatch-v$aniwatchVersion.dart";
@@ -15,7 +15,7 @@ List<Source> _aniwatchSourcesList = [
iconUrl: getIconUrl("aniwatch", "en"),
version: aniwatchVersion,
isManga: false,
appMinVerReq: "0.0.4",
appMinVerReq: "0.0.45",
sourceCodeUrl: aniwatchSourceCodeUrl),
Source(
name: "Kaido.to",
@@ -25,6 +25,6 @@ List<Source> _aniwatchSourcesList = [
iconUrl: getIconUrl("kaido", "en"),
version: aniwatchVersion,
isManga: false,
appMinVerReq: "0.0.4",
appMinVerReq: "0.0.45",
sourceCodeUrl: aniwatchSourceCodeUrl),
];

View File

@@ -2,18 +2,24 @@ import 'dart:convert';
import 'package:bridge_lib/bridge_lib.dart';
getPopularManga(MangaModel manga) async {
final lang = manga.lang.replaceAll("-", "_");
final url =
"${manga.baseUrl}/browse?langs=$lang&sort=views_a&page=${manga.page}";
"${manga.baseUrl}/browse?${lang(manga.lang)}&sort=views_a&page=${manga.page}";
final data = {"url": url, "headers": null, "sourceId": manga.sourceId};
final res = await MBridge.http(json.encode(data), 0);
return mangaElementM(res, manga);
}
String lang(String lang) {
lang = lang.replaceAll("-", "_");
if (lang == "all") {
return "";
}
return "langs=$lang";
}
getLatestUpdatesManga(MangaModel manga) async {
final lang = manga.lang.replaceAll("-", "_");
final url =
"${manga.baseUrl}/browse?langs=$lang&sort=update&page=${manga.page}";
"${manga.baseUrl}/browse?${lang(manga.lang)}&sort=update&page=${manga.page}";
final data = {"url": url, "headers": null, "sourceId": manga.sourceId};
final res = await MBridge.http(json.encode(data), 0);
return mangaElementM(res, manga);

View File

@@ -1,7 +1,7 @@
import '../../../../model/source.dart';
import '../../../../utils/utils.dart';
const batotoVersion = "0.0.11";
const batotoVersion = "0.0.12";
const batotoSourceCodeUrl =
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/batoto/batoto-v$batotoVersion.dart";