mirror of
https://github.com/kodjodevf/mangayomi-extensions.git
synced 2026-02-14 10:51:17 +00:00
fix AniWatch.to streamtape server label, fix Bato.to language
This commit is contained in:
@@ -180,8 +180,8 @@ getVideoList(MangaModel anime) async {
|
|||||||
a = await MBridge.rapidCloudExtractor(url, "Vidstreaming - $subDub");
|
a = await MBridge.rapidCloudExtractor(url, "Vidstreaming - $subDub");
|
||||||
} else if (name.contains("Vidcloud")) {
|
} else if (name.contains("Vidcloud")) {
|
||||||
a = await MBridge.rapidCloudExtractor(url, "Vidcloud - $subDub");
|
a = await MBridge.rapidCloudExtractor(url, "Vidcloud - $subDub");
|
||||||
} else if (name.contains("StreamTape - $subDub")) {
|
} else if (name.contains("StreamTape")) {
|
||||||
a = await MBridge.streamTapeExtractor(url);
|
a = await MBridge.streamTapeExtractor(url,"StreamTape - $subDub");
|
||||||
}
|
}
|
||||||
for (var vi in a) {
|
for (var vi in a) {
|
||||||
videos.add(vi);
|
videos.add(vi);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../../../model/source.dart';
|
import '../../../../model/source.dart';
|
||||||
import '../../../../utils/utils.dart';
|
import '../../../../utils/utils.dart';
|
||||||
|
|
||||||
const aniwatchVersion = "0.0.14";
|
const aniwatchVersion = "0.0.15";
|
||||||
const aniwatchSourceCodeUrl =
|
const aniwatchSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/anime/src/en/aniwatch/aniwatch-v$aniwatchVersion.dart";
|
"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"),
|
iconUrl: getIconUrl("aniwatch", "en"),
|
||||||
version: aniwatchVersion,
|
version: aniwatchVersion,
|
||||||
isManga: false,
|
isManga: false,
|
||||||
appMinVerReq: "0.0.4",
|
appMinVerReq: "0.0.45",
|
||||||
sourceCodeUrl: aniwatchSourceCodeUrl),
|
sourceCodeUrl: aniwatchSourceCodeUrl),
|
||||||
Source(
|
Source(
|
||||||
name: "Kaido.to",
|
name: "Kaido.to",
|
||||||
@@ -25,6 +25,6 @@ List<Source> _aniwatchSourcesList = [
|
|||||||
iconUrl: getIconUrl("kaido", "en"),
|
iconUrl: getIconUrl("kaido", "en"),
|
||||||
version: aniwatchVersion,
|
version: aniwatchVersion,
|
||||||
isManga: false,
|
isManga: false,
|
||||||
appMinVerReq: "0.0.4",
|
appMinVerReq: "0.0.45",
|
||||||
sourceCodeUrl: aniwatchSourceCodeUrl),
|
sourceCodeUrl: aniwatchSourceCodeUrl),
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -2,18 +2,24 @@ import 'dart:convert';
|
|||||||
import 'package:bridge_lib/bridge_lib.dart';
|
import 'package:bridge_lib/bridge_lib.dart';
|
||||||
|
|
||||||
getPopularManga(MangaModel manga) async {
|
getPopularManga(MangaModel manga) async {
|
||||||
final lang = manga.lang.replaceAll("-", "_");
|
|
||||||
final url =
|
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 data = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
final res = await MBridge.http(json.encode(data), 0);
|
final res = await MBridge.http(json.encode(data), 0);
|
||||||
return mangaElementM(res, manga);
|
return mangaElementM(res, manga);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String lang(String lang) {
|
||||||
|
lang = lang.replaceAll("-", "_");
|
||||||
|
if (lang == "all") {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
return "langs=$lang";
|
||||||
|
}
|
||||||
|
|
||||||
getLatestUpdatesManga(MangaModel manga) async {
|
getLatestUpdatesManga(MangaModel manga) async {
|
||||||
final lang = manga.lang.replaceAll("-", "_");
|
|
||||||
final url =
|
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 data = {"url": url, "headers": null, "sourceId": manga.sourceId};
|
||||||
final res = await MBridge.http(json.encode(data), 0);
|
final res = await MBridge.http(json.encode(data), 0);
|
||||||
return mangaElementM(res, manga);
|
return mangaElementM(res, manga);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import '../../../../model/source.dart';
|
import '../../../../model/source.dart';
|
||||||
import '../../../../utils/utils.dart';
|
import '../../../../utils/utils.dart';
|
||||||
|
|
||||||
const batotoVersion = "0.0.11";
|
const batotoVersion = "0.0.12";
|
||||||
const batotoSourceCodeUrl =
|
const batotoSourceCodeUrl =
|
||||||
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/batoto/batoto-v$batotoVersion.dart";
|
"https://raw.githubusercontent.com/kodjodevf/mangayomi-extensions/main/manga/src/all/batoto/batoto-v$batotoVersion.dart";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user