mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
fixed Time4tv schedule & fixed some Indonesian providers
This commit is contained in:
parent
16aeed36b7
commit
af928eb1be
6 changed files with 12 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 6
|
||||
version = 7
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -6,6 +6,7 @@ import com.lagradost.cloudstream3.utils.AppUtils
|
|||
import com.lagradost.cloudstream3.utils.AppUtils.toJson
|
||||
import com.lagradost.cloudstream3.utils.ExtractorLink
|
||||
import com.lagradost.cloudstream3.utils.Qualities
|
||||
import org.jsoup.Jsoup
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
open class TimefourTv : MainAPI() {
|
||||
|
@ -90,11 +91,12 @@ open class TimefourTv : MainAPI() {
|
|||
val doc = app.get("$mainUrl/schedule.php").document
|
||||
|
||||
val episode =
|
||||
doc.selectFirst("div.search_p h2:contains($name)")?.nextElementSibling()?.select("span")
|
||||
?.mapIndexedNotNull { index, ele ->
|
||||
doc.selectFirst("div.search_p h2:contains($name)")?.nextElementSiblings()?.toString()
|
||||
?.substringBefore("<h2")?.let { Jsoup.parse(it) }?.select("span")
|
||||
?.mapIndexed { index, ele ->
|
||||
val title = ele.select("a").text()
|
||||
val href = ele.select("a").attr("href")
|
||||
val desc = ele.parent()?.textNodes()?.get(index).toString()
|
||||
val desc = ele.parent()?.textNodes()?.getOrNull(index)?.toString()
|
||||
Episode(
|
||||
href,
|
||||
title,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue