From 58f142a8d78c2cbb86e627a76fea7e0f18b7391b Mon Sep 17 00:00:00 2001 From: hexated Date: Fri, 7 Jul 2023 15:10:25 +0700 Subject: [PATCH] small fix --- SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt | 8 ++++---- SoraStream/src/main/kotlin/com/hexated/SoraStream.kt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt index 754dd9ee..9b40016b 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraExtractor.kt @@ -1017,14 +1017,14 @@ object SoraExtractor : SoraStream() { "X-Requested-With" to "XMLHttpRequest", ) animeId?.apmap { id -> - val episodeId = app.get("$zoroAPI/ajax/v2/episode/list/${id ?: return@apmap}", headers = headers) + val episodeId = app.get("$zoroAPI/ajax/episode/list/${id ?: return@apmap}", headers = headers) .parsedSafe()?.html?.let { Jsoup.parse(it) }?.select("div.ss-list a")?.find { it.attr("data-number") == "${episode ?: 1}" } ?.attr("data-id") val servers = - app.get("$zoroAPI/ajax/v2/episode/servers?episodeId=${episodeId ?: return@apmap}", headers = headers) + app.get("$zoroAPI/ajax/episode/servers?episodeId=${episodeId ?: return@apmap}", headers = headers) .parsedSafe()?.html?.let { Jsoup.parse(it) } ?.select("div.item.server-item")?.map { Triple( @@ -1036,10 +1036,10 @@ object SoraExtractor : SoraStream() { servers?.apmap servers@{ server -> val iframe = - app.get("$zoroAPI/ajax/v2/episode/sources?id=${server.second ?: return@servers}", headers = headers) + app.get("$zoroAPI/ajax/episode/sources?id=${server.second ?: return@servers}", headers = headers) .parsedSafe()?.link ?: return@servers val audio = if (server.third == "sub") "Raw" else "English Dub" - if (server.first == "Vidstreaming" || server.first == "MegaCloud") { + if (server.first.contains(Regex("Vidstreaming|MegaCloud|Vidcloud"))) { extractRabbitStream( "${server.first} [$audio]", iframe, diff --git a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt index 7aa8b215..4687e7a9 100644 --- a/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt +++ b/SoraStream/src/main/kotlin/com/hexated/SoraStream.kt @@ -100,7 +100,7 @@ open class SoraStream : TmdbProvider() { const val filmxyAPI = "https://www.filmxy.vip" const val kimcartoonAPI = "https://kimcartoon.li" const val xMovieAPI = "https://xemovies.to" - const val zoroAPI = "https://aniwatch.to" + const val zoroAPI = "https://kaido.to" const val crunchyrollAPI = "https://beta-api.crunchyroll.com" const val kissKhAPI = "https://kisskh.co" const val lingAPI = "https://ling-online.net"