diff --git a/TimefourTv/build.gradle.kts b/TimefourTv/build.gradle.kts index 8194a3f8..41074ab6 100644 --- a/TimefourTv/build.gradle.kts +++ b/TimefourTv/build.gradle.kts @@ -1,5 +1,5 @@ // use an integer for version numbers -version = 17 +version = 18 cloudstream { diff --git a/TimefourTv/src/main/kotlin/com/hexated/TimefourTv.kt b/TimefourTv/src/main/kotlin/com/hexated/TimefourTv.kt index 2ecb947b..690a5b8d 100644 --- a/TimefourTv/src/main/kotlin/com/hexated/TimefourTv.kt +++ b/TimefourTv/src/main/kotlin/com/hexated/TimefourTv.kt @@ -110,6 +110,13 @@ open class TimefourTv : MainAPI() { } + override suspend fun search(query: String): List { + val document = app.get("$daddyUrl/24-7-channels.php").document + return document.select("div.grid-container div.grid-item:contains($query)").mapNotNull { + it.toSearchDaddy() + } + } + private suspend fun loadSchedule(url: String): LoadResponse { val name = url.removePrefix("$mainUrl/") val doc = app.get("$mainUrl/schedule.php").document