mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
TimefourTv: added search page
This commit is contained in:
parent
62cab062e3
commit
18c07cc069
2 changed files with 8 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
// use an integer for version numbers
|
||||
version = 17
|
||||
version = 18
|
||||
|
||||
|
||||
cloudstream {
|
||||
|
|
|
@ -110,6 +110,13 @@ open class TimefourTv : MainAPI() {
|
|||
|
||||
}
|
||||
|
||||
override suspend fun search(query: String): List<SearchResponse> {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue