From cff62d0a3d0eb5511cc0be3303254e62c6bc27c4 Mon Sep 17 00:00:00 2001 From: kodjomoustapha <107993382+kodjodevf@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:39:30 +0100 Subject: [PATCH] fix AniWatch.to streamtape server label, fix Bato.to language --- ...aniwatch-v0.0.14.dart => aniwatch-v0.0.15.dart} | 4 ++-- anime/src/en/aniwatch/sources.dart | 6 +++--- .../{batoto-v0.0.11.dart => batoto-v0.0.12.dart} | 14 ++++++++++---- manga/src/all/batoto/sources.dart | 2 +- 4 files changed, 16 insertions(+), 10 deletions(-) rename anime/src/en/aniwatch/{aniwatch-v0.0.14.dart => aniwatch-v0.0.15.dart} (98%) rename manga/src/all/batoto/{batoto-v0.0.11.dart => batoto-v0.0.12.dart} (96%) diff --git a/anime/src/en/aniwatch/aniwatch-v0.0.14.dart b/anime/src/en/aniwatch/aniwatch-v0.0.15.dart similarity index 98% rename from anime/src/en/aniwatch/aniwatch-v0.0.14.dart rename to anime/src/en/aniwatch/aniwatch-v0.0.15.dart index 27750699..0dab85af 100644 --- a/anime/src/en/aniwatch/aniwatch-v0.0.14.dart +++ b/anime/src/en/aniwatch/aniwatch-v0.0.15.dart @@ -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); diff --git a/anime/src/en/aniwatch/sources.dart b/anime/src/en/aniwatch/sources.dart index 0a46902f..2ec42a35 100644 --- a/anime/src/en/aniwatch/sources.dart +++ b/anime/src/en/aniwatch/sources.dart @@ -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 _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 _aniwatchSourcesList = [ iconUrl: getIconUrl("kaido", "en"), version: aniwatchVersion, isManga: false, - appMinVerReq: "0.0.4", + appMinVerReq: "0.0.45", sourceCodeUrl: aniwatchSourceCodeUrl), ]; diff --git a/manga/src/all/batoto/batoto-v0.0.11.dart b/manga/src/all/batoto/batoto-v0.0.12.dart similarity index 96% rename from manga/src/all/batoto/batoto-v0.0.11.dart rename to manga/src/all/batoto/batoto-v0.0.12.dart index ced9b3c9..38479e66 100644 --- a/manga/src/all/batoto/batoto-v0.0.11.dart +++ b/manga/src/all/batoto/batoto-v0.0.12.dart @@ -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); diff --git a/manga/src/all/batoto/sources.dart b/manga/src/all/batoto/sources.dart index 9702d654..ebe65f42 100644 --- a/manga/src/all/batoto/sources.dart +++ b/manga/src/all/batoto/sources.dart @@ -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";