sora bump

This commit is contained in:
hexated 2023-05-23 04:45:08 +07:00
parent 03d3731979
commit 2752abaf31
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
import org.jetbrains.kotlin.konan.properties.Properties import org.jetbrains.kotlin.konan.properties.Properties
// use an integer for version numbers // use an integer for version numbers
version = 132 version = 133
android { android {
defaultConfig { defaultConfig {

View file

@ -916,7 +916,7 @@ object SoraExtractor : SoraStream() {
val episodeId = app.get("$zoroAPI/ajax/v2/episode/list/${id ?: return@apmap}") val episodeId = app.get("$zoroAPI/ajax/v2/episode/list/${id ?: return@apmap}")
.parsedSafe<ZoroResponses>()?.html?.let { .parsedSafe<ZoroResponses>()?.html?.let {
Jsoup.parse(it) Jsoup.parse(it)
}?.select("div.ss-list a")?.find { it.attr("data-number") == "$episode" } }?.select("div.ss-list a")?.find { it.attr("data-number") == "${episode ?: 1}" }
?.attr("data-id") ?.attr("data-id")
val servers = app.get("$zoroAPI/ajax/v2/episode/servers?episodeId=${episodeId ?: return@apmap}") val servers = app.get("$zoroAPI/ajax/v2/episode/servers?episodeId=${episodeId ?: return@apmap}")
@ -1493,7 +1493,7 @@ object SoraExtractor : SoraStream() {
"Hunter x Hunter" -> it.season_number == 5 "Hunter x Hunter" -> it.season_number == 5
else -> it.season_number == season else -> it.season_number == season
} }
} } ?: s.find { it.season_number?.plus(1) == season }
} }
} }
val seasonId = seasonIdData?.versions?.filter { it.audio_locale in audioLocal } val seasonId = seasonIdData?.versions?.filter { it.audio_locale in audioLocal }