ComicK: Add exception + Fix build for ci

This commit is contained in:
dragonx943
2025-09-21 14:16:58 +07:00
parent 9007852d31
commit 8a18df148d
3 changed files with 9 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ jobs:
- name: Set up enviroment 🔧
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'
- name: Set up Gradle 📦

View File

@@ -19,7 +19,7 @@ jobs:
- name: Set up enviroment 🔧
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
with:
java-version: '11'
java-version: '17'
distribution: 'temurin'
- name: Set up Gradle 📦

View File

@@ -147,8 +147,13 @@ internal class ComickFunParser(context: MangaLoaderContext) :
)
}
val ja = webClient.httpGet(url.build()).parseJsonArray()
val tagsMap = tagsArray.get()
val ja = try {
webClient.httpGet(url.build()).parseJsonArray()
} catch (_: Exception) {
throw IllegalArgumentException("ComicK is down!")
}
val tagsMap = tagsArray.get()
return ja.mapJSON { jo ->
val slug = jo.getString("slug")
Manga(