mirror of
https://github.com/gotson/komga.git
synced 2025-12-20 07:23:34 +01:00
feat: detect JPEG XL images
upgrade tika to 2.2.0
This commit is contained in:
parent
a9579adf5f
commit
610c51fd5d
2 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ dependencies {
|
|||
|
||||
implementation("com.ibm.icu:icu4j:70.1")
|
||||
|
||||
implementation("org.apache.tika:tika-core:1.26")
|
||||
implementation("org.apache.tika:tika-core:2.2.0")
|
||||
implementation("org.apache.commons:commons-compress:1.21")
|
||||
implementation("com.github.junrar:junrar:7.4.0")
|
||||
implementation("org.apache.pdfbox:pdfbox:2.0.25")
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class ContentDetector(
|
|||
|
||||
fun detectMediaType(path: Path): String {
|
||||
val metadata = Metadata().also {
|
||||
it[Metadata.RESOURCE_NAME_KEY] = path.name
|
||||
it[Metadata.TIKA_MIME_FILE] = path.name
|
||||
}
|
||||
|
||||
return TikaInputStream.get(path).use {
|
||||
|
|
|
|||
Loading…
Reference in a new issue