mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
Nodrakorid & Hdmovie2: fix episodes list
This commit is contained in:
parent
b04f604e74
commit
5341a03eb6
7 changed files with 20 additions and 25 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 38
|
||||
version = 39
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue