layarkaca: small cleaning

This commit is contained in:
hexated 2023-05-08 11:25:50 +07:00
parent b72294fc04
commit b95a8ae25b
2 changed files with 5 additions and 12 deletions

View file

@ -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)