mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fixed missing episodes in aniflix
This commit is contained in:
parent
d581c4b627
commit
9482f5e625
1 changed files with 6 additions and 6 deletions
|
@ -87,13 +87,13 @@ class AniflixProvider : MainAPI() {
|
||||||
listOf(newEpisode("$mainUrl/api/anime/?id=$id&episode=1"))
|
listOf(newEpisode("$mainUrl/api/anime/?id=$id&episode=1"))
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
addEpisodes(DubStatus.Subbed, res.episodes.episodes?.nodes?.mapNotNull { node ->
|
addEpisodes(DubStatus.Subbed, res.episodes.episodes?.nodes?.mapIndexed { index, node ->
|
||||||
val ep = node?.number ?: return@mapNotNull null
|
val episodeIndex = node?.number ?: (index + 1)
|
||||||
//"$mainUrl/_next/data/$token/watch/$id.json?episode=${node.number ?: return@mapNotNull null}&id=$id"
|
//"$mainUrl/_next/data/$token/watch/$id.json?episode=${node.number ?: return@mapNotNull null}&id=$id"
|
||||||
newEpisode("$mainUrl/api/anime?id=$id&episode=${ep}") {
|
newEpisode("$mainUrl/api/anime?id=$id&episode=${episodeIndex}") {
|
||||||
episode = ep
|
episode = episodeIndex
|
||||||
posterUrl = node.thumbnail?.original?.url
|
posterUrl = node?.thumbnail?.original?.url
|
||||||
name = node.titles?.canonical
|
name = node?.titles?.canonical
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue