mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
update
This commit is contained in:
parent
696550cdf9
commit
745409e071
2 changed files with 6 additions and 5 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -46,9 +46,10 @@ jobs:
|
||||||
SORAHE: ${{ secrets.SORAHE }}
|
SORAHE: ${{ secrets.SORAHE }}
|
||||||
SORAXA: ${{ secrets.SORAXA }}
|
SORAXA: ${{ secrets.SORAXA }}
|
||||||
SORATED: ${{ secrets.SORATED }}
|
SORATED: ${{ secrets.SORATED }}
|
||||||
run: |
|
run: echo $'SORA_API=$SORA_API\nSORAHE=$SORAHE\nSORAXA=$SORAXA\nSORATED=$SORATED' > $GITHUB_WORKSPACE/src/local.properties
|
||||||
cd $GITHUB_WORKSPACE/src
|
# run: |
|
||||||
echo $'SORA_API=$SORA_API\nSORAHE=$SORAHE\nSORAXA=$SORAXA\nSORATED=$SORATED' > local.properties
|
# cd $GITHUB_WORKSPACE/src
|
||||||
|
# echo $'SORA_API=$SORA_API\nSORAHE=$SORAHE\nSORAXA=$SORAXA\nSORATED=$SORATED' > local.properties
|
||||||
|
|
||||||
- name: Build Plugins
|
- name: Build Plugins
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -95,14 +95,14 @@ class Gomunimeis : MainAPI() {
|
||||||
val tags = document.select(".genxed > a").map { it.text() }
|
val tags = document.select(".genxed > a").map { it.text() }
|
||||||
val type = document.selectFirst("div.info-content .spe span:last-child")?.ownText()?.lowercase() ?: "tv"
|
val type = document.selectFirst("div.info-content .spe span:last-child")?.ownText()?.lowercase() ?: "tv"
|
||||||
|
|
||||||
val year = Regex("\\d, ([0-9]*)").find(
|
val year = Regex("\\d, (\\d*)").find(
|
||||||
document.selectFirst("div.info-content .spe span.split")?.ownText().toString()
|
document.selectFirst("div.info-content .spe span.split")?.ownText().toString()
|
||||||
)?.groupValues?.get(1)?.toIntOrNull()
|
)?.groupValues?.get(1)?.toIntOrNull()
|
||||||
val status = getStatus(document.selectFirst(".spe > span")!!.ownText())
|
val status = getStatus(document.selectFirst(".spe > span")!!.ownText())
|
||||||
val description = document.select("div[itemprop = description] > p").text()
|
val description = document.select("div[itemprop = description] > p").text()
|
||||||
val (malId, anilistId, image, cover) = getTracker(title, type, year)
|
val (malId, anilistId, image, cover) = getTracker(title, type, year)
|
||||||
val episodes = document.select(".eplister > ul > li").map {
|
val episodes = document.select(".eplister > ul > li").map {
|
||||||
val episode = Regex("Episode\\s?([0-9]+)").find(
|
val episode = Regex("Episode\\s?(\\d+)").find(
|
||||||
it.select(".epl-title").text()
|
it.select(".epl-title").text()
|
||||||
)?.groupValues?.getOrNull(0)
|
)?.groupValues?.getOrNull(0)
|
||||||
val link = it.select("a").attr("href")
|
val link = it.select("a").attr("href")
|
||||||
|
|
Loading…
Reference in a new issue