Skip to content

Commit

Permalink
fix: image path
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekoer committed Oct 17, 2022
1 parent 56c7bed commit 6964d7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "com.hcyacg"
version = "0.7.2"
version = "0.7.3"

repositories {
maven("https://maven.aliyun.com/repository/public")
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/Generate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public object Generate {

val name = element.jsonObject["data"]?.jsonArray?.get(0)?.jsonArray?.get(0)?.jsonObject?.get("name")?.jsonPrimitive?.content
request = Request.Builder().apply {
url("${Config.stableDiffusionWebui}/file=/$name")
url("${Config.stableDiffusionWebui}/file=$name")
}.build()
response = client.newCall(request).execute()
val byte = response.body?.bytes()
Expand Down Expand Up @@ -242,7 +242,7 @@ public object Generate {
val element = json.parseToJsonElement(response.body!!.string())
val name = element.jsonObject["data"]?.jsonArray?.get(0)?.jsonArray?.get(0)?.jsonObject?.get("name")?.jsonPrimitive?.content
request = Request.Builder().apply {
url("${Config.stableDiffusionWebui}/file=/$name")
url("${Config.stableDiffusionWebui}/file=$name")
}.build()
response = client.newCall(request).execute()
val byte = response.body?.bytes()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/Novelai.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public object Novelai : KotlinPlugin(
JvmPluginDescription(
id = "com.hcyacg.novelai",
name = "novelai",
version = "0.7.2",
version = "0.7.3",
) {
author("Nekoer")
}
Expand Down

0 comments on commit 6964d7c

Please sign in to comment.