shitty crunchy

This commit is contained in:
hexated 2022-12-22 08:28:43 +07:00
parent b6ffffa34b
commit 547fccea68

View file

@ -1475,13 +1475,7 @@ object SoraExtractor : SoraStream() {
val detail = app.get("$consumetCrunchyrollAPI/info?id=${id.id}&mediaType=series").text val detail = app.get("$consumetCrunchyrollAPI/info?id=${id.id}&mediaType=series").text
val episodeId = tryParseJson<ConsumetDetails>(detail)?.episodes?.filter { val episodeId = tryParseJson<ConsumetDetails>(detail)?.episodes?.filter {
(if (season == 1) { it.title.equals(epsTitle, true) && (it.type == "Subbed" || it.type == "English Dub")
it.title.equals(
epsTitle, true
) || it.number == episode
} else {
it.title.equals(epsTitle, true)
}) && (it.type == "Subbed" || it.type == "English Dub")
}?.map { it.id to it.type } ?: return }?.map { it.id to it.type } ?: return
episodeId.apmap { (id, type) -> episodeId.apmap { (id, type) ->