This commit is contained in:
hexated 2023-05-05 18:18:13 +07:00
parent 696550cdf9
commit 745409e071
2 changed files with 6 additions and 5 deletions

View file

@ -46,9 +46,10 @@ jobs:
SORAHE: ${{ secrets.SORAHE }}
SORAXA: ${{ secrets.SORAXA }}
SORATED: ${{ secrets.SORATED }}
run: |
cd $GITHUB_WORKSPACE/src
echo $'SORA_API=$SORA_API\nSORAHE=$SORAHE\nSORAXA=$SORAXA\nSORATED=$SORATED' > local.properties
run: echo $'SORA_API=$SORA_API\nSORAHE=$SORAHE\nSORAXA=$SORAXA\nSORATED=$SORATED' > $GITHUB_WORKSPACE/src/local.properties
# run: |
# cd $GITHUB_WORKSPACE/src
# echo $'SORA_API=$SORA_API\nSORAHE=$SORAHE\nSORAXA=$SORAXA\nSORATED=$SORATED' > local.properties
- name: Build Plugins
run: |

View file

@ -95,14 +95,14 @@ class Gomunimeis : MainAPI() {
val tags = document.select(".genxed > a").map { it.text() }
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()
)?.groupValues?.get(1)?.toIntOrNull()
val status = getStatus(document.selectFirst(".spe > span")!!.ownText())
val description = document.select("div[itemprop = description] > p").text()
val (malId, anilistId, image, cover) = getTracker(title, type, year)
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()
)?.groupValues?.getOrNull(0)
val link = it.select("a").attr("href")