mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
layarkaca: small cleaning
This commit is contained in:
parent
b72294fc04
commit
b95a8ae25b
2 changed files with 5 additions and 12 deletions
|
@ -64,18 +64,6 @@ class LayarKacaProvider : MainAPI() {
|
|||
}
|
||||
}
|
||||
|
||||
// private fun changesUrl(url: String): String {
|
||||
// val startsWithNoHttp = url.startsWith("//")
|
||||
// if (startsWithNoHttp) {
|
||||
// return "https:$url"
|
||||
// } else {
|
||||
// if (url.startsWith('/')) {
|
||||
// return seriesUrl + url
|
||||
// }
|
||||
// return "$seriesUrl/$url"
|
||||
// }
|
||||
// }
|
||||
|
||||
private fun Element.toSearchResult(): SearchResponse? {
|
||||
val title = this.selectFirst("h1.grid-title > a")?.ownText()?.trim() ?: return null
|
||||
val href = getProperLink(this.selectFirst("a")!!.attr("href"), title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue