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

@ -61,6 +61,11 @@ jobs:
cp **/build/*.cs3 $GITHUB_WORKSPACE/builds
cp build/plugins.json $GITHUB_WORKSPACE/builds
- name: Move Loklok
run: |
rm $GITHUB_WORKSPACE/builds/Loklok.cs3 || true
cp $GITHUB_WORKSPACE/stored/Loklok.cs3 $GITHUB_WORKSPACE/builds
- name: Push builds
run: |
cd $GITHUB_WORKSPACE/builds

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)