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
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -61,6 +61,11 @@ jobs:
|
||||||
cp **/build/*.cs3 $GITHUB_WORKSPACE/builds
|
cp **/build/*.cs3 $GITHUB_WORKSPACE/builds
|
||||||
cp build/plugins.json $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
|
- name: Push builds
|
||||||
run: |
|
run: |
|
||||||
cd $GITHUB_WORKSPACE/builds
|
cd $GITHUB_WORKSPACE/builds
|
||||||
|
|
|
@ -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? {
|
private fun Element.toSearchResult(): SearchResponse? {
|
||||||
val title = this.selectFirst("h1.grid-title > a")?.ownText()?.trim() ?: return null
|
val title = this.selectFirst("h1.grid-title > a")?.ownText()?.trim() ?: return null
|
||||||
val href = getProperLink(this.selectFirst("a")!!.attr("href"), title)
|
val href = getProperLink(this.selectFirst("a")!!.attr("href"), title)
|
||||||
|
|
Loading…
Reference in a new issue