Nodrakorid & Hdmovie2: fix episodes list

This commit is contained in:
sora 2023-08-06 01:59:19 +07:00
parent b04f604e74
commit 5341a03eb6
7 changed files with 20 additions and 25 deletions

View file

@ -1,5 +1,5 @@
// use an integer for version numbers
version = 38
version = 39
cloudstream {

View file

@ -118,10 +118,10 @@ open class Movierulzhd : MainAPI() {
document.select("span.date").text().trim()
)?.groupValues?.get(1).toString().toIntOrNull()
val tvType = if (document.select("ul#section > li:nth-child(1)").text()
.contains("Episodes") || document.selectFirst("ul#playeroptionsul li span.title")
?.text()?.contains(
.contains("Episodes") || document.select("ul#playeroptionsul li span.title")
.text().contains(
Regex("Episode\\s+\\d+|EP\\d+|PE\\d+")
) == true
)
) TvType.TvSeries else TvType.Movie
val description = document.select("div.wp-content > p").text().trim()
val trailer = document.selectFirst("div.embed iframe")?.attr("src")