ComicK: Add exception + Fix build for ci
This commit is contained in:
2
.github/workflows/test-branch.yml
vendored
2
.github/workflows/test-branch.yml
vendored
@@ -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 📦
|
||||
|
||||
2
.github/workflows/test-parsers.yml
vendored
2
.github/workflows/test-parsers.yml
vendored
@@ -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 📦
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user