[Sora] fixed missing anime in Crunchyroll

This commit is contained in:
hexated 2023-02-01 11:58:36 +07:00
parent 7192574077
commit 23662597e5

View file

@ -595,7 +595,7 @@ fun CrunchyrollDetails.findCrunchyrollId(
fun List<HashMap<String, String>>?.matchingEpisode(episode: Int?): String? {
return this?.find {
it["episode_number"] == "$episode"
it["episode_number"] == "$episode" || indexOf(it).plus(1) == episode
}?.get("id")
}