diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8820312e..73d6691b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | diff --git a/Gomunimeis/src/main/kotlin/com/hexated/Gomunimeis.kt b/Gomunimeis/src/main/kotlin/com/hexated/Gomunimeis.kt index 888a1319..cd53f808 100644 --- a/Gomunimeis/src/main/kotlin/com/hexated/Gomunimeis.kt +++ b/Gomunimeis/src/main/kotlin/com/hexated/Gomunimeis.kt @@ -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")