mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
small fix
This commit is contained in:
parent
521e8021d0
commit
22278bcd2d
1 changed files with 2 additions and 4 deletions
|
@ -1116,7 +1116,7 @@ object SoraExtractor : SoraStream() {
|
||||||
invokeZoro(aniId, episode, subtitleCallback, callback)
|
invokeZoro(aniId, episode, subtitleCallback, callback)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
invokeAnimeKaizoku(title, malId, season, episode, callback)
|
invokeAnimeKaizoku(malId, season, episode, callback)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1165,14 +1165,12 @@ object SoraExtractor : SoraStream() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun invokeAnimeKaizoku(
|
private suspend fun invokeAnimeKaizoku(
|
||||||
title: String? = null,
|
|
||||||
malId: String? = null,
|
malId: String? = null,
|
||||||
season: Int? = null,
|
season: Int? = null,
|
||||||
episode: Int? = null,
|
episode: Int? = null,
|
||||||
callback: (ExtractorLink) -> Unit
|
callback: (ExtractorLink) -> Unit
|
||||||
) {
|
) {
|
||||||
val fixTitle = title.fixTitle()?.replace("-", " ")
|
val search = app.get("$animeKaizokuAPI/?s=$malId").document
|
||||||
val search = app.get("$animeKaizokuAPI/?s=${fixTitle}").document
|
|
||||||
val detailHref =
|
val detailHref =
|
||||||
search.select("ul#posts-container li").map { it.selectFirst("a")?.attr("href") }
|
search.select("ul#posts-container li").map { it.selectFirst("a")?.attr("href") }
|
||||||
.find {
|
.find {
|
||||||
|
|
Loading…
Reference in a new issue