Refactor GameyfinPlugin and ConfigurableGameyfinPlugin to fix SLF4J issue

This commit is contained in:
grimsi
2025-05-16 10:59:49 +02:00
parent f91b289cee
commit 9c6becb29e
9 changed files with 72 additions and 54 deletions
+1 -2
View File
@@ -66,8 +66,7 @@ dependencies {
implementation("ch.digitalfondue.mjml4j:mjml4j:1.0.3")
// Plugins
implementation(project(":plugin-api"))
ksp("care.better.pf4j:pf4j-kotlin-symbol-processing:${rootProject.extra["pf4jKspVersion"]}")
compileOnly(project(":plugin-api"))
// Utils
implementation("org.apache.tika:tika-core:3.1.0")
@@ -30,7 +30,7 @@ class DownloadEndpoint(
return when (download) {
is FileDownload -> {
ResponseEntity.ok()
.header("Content-Disposition", "attachment; filename=\"${game.title}.zip\"")
.header("Content-Disposition", "attachment; filename=\"${game.title}.${download.fileExtension}\"")
.body(StreamingResponseBody { outputStream ->
download.data.copyTo(outputStream)
})