mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
shitty crunchy
This commit is contained in:
parent
b6ffffa34b
commit
547fccea68
1 changed files with 1 additions and 7 deletions
|
@ -1475,13 +1475,7 @@ object SoraExtractor : SoraStream() {
|
|||
|
||||
val detail = app.get("$consumetCrunchyrollAPI/info?id=${id.id}&mediaType=series").text
|
||||
val episodeId = tryParseJson<ConsumetDetails>(detail)?.episodes?.filter {
|
||||
(if (season == 1) {
|
||||
it.title.equals(
|
||||
epsTitle, true
|
||||
) || it.number == episode
|
||||
} else {
|
||||
it.title.equals(epsTitle, true)
|
||||
}) && (it.type == "Subbed" || it.type == "English Dub")
|
||||
it.title.equals(epsTitle, true) && (it.type == "Subbed" || it.type == "English Dub")
|
||||
}?.map { it.id to it.type } ?: return
|
||||
|
||||
episodeId.apmap { (id, type) ->
|
||||
|
|
Loading…
Reference in a new issue