mirror of
https://github.com/recloudstream/cloudstream-extensions-multilingual.git
synced 2024-08-15 03:15:14 +00:00
kotlin syntax
This commit is contained in:
parent
1ecb0ee3ba
commit
de7028db0d
1 changed files with 2 additions and 2 deletions
|
@ -104,13 +104,13 @@ class MundoDonghuaProvider : MainAPI() {
|
||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
val specialEpisodes = doc2.selectFirst("sm-row bg-white pt-10 pr-20 pb-15 pl-20")!!.selectFirst("row")!!.select("item col-lg-2 col-md-2 col-xs-4")!!.map {
|
val specialEpisodes = doc2.selectFirst("sm-row bg-white pt-10 pr-20 pb-15 pl-20")!!.selectFirst("row")!!.select("item col-lg-2 col-md-2 col-xs-4")!!.map {
|
||||||
if (it.selectFirst("sf fc-dark f-bold")?.text()?.contains(title)) {
|
if (it.selectFirst("sf fc-dark f-bold")?.text()?.contains(title) ?: false) {
|
||||||
val name = it.selectFirst("sf fc-dark f-bold")?.text()?.replace("Episodio","-")
|
val name = it.selectFirst("sf fc-dark f-bold")?.text()?.replace("Episodio","-")
|
||||||
val link = it.attr("href")
|
val link = it.attr("href")
|
||||||
Episode(fixUrl(link), name)
|
Episode(fixUrl(link), name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var episodes = doc.select("ul.donghua-list a").map {
|
val episodes = doc.select("ul.donghua-list a").map {
|
||||||
val name = it.selectFirst(".fs-16")?.text()
|
val name = it.selectFirst(".fs-16")?.text()
|
||||||
val link = it.attr("href")
|
val link = it.attr("href")
|
||||||
Episode(fixUrl(link), name)
|
Episode(fixUrl(link), name)
|
||||||
|
|
Loading…
Reference in a new issue