[Komga] add support for image/jxl (#10194)

* feat: add support for image/jxl

* update changelog and version
This commit is contained in:
Gauthier 2021-12-22 21:16:15 +08:00 committed by GitHub
parent af25e1d443
commit 7719c36305
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
## 1.2.36
Minimum Komga version required: `0.113.0`
### Features
* Don't request conversion for JPEG XL images
## 1.2.35
Minimum Komga version required: `0.113.0`

View File

@ -6,7 +6,7 @@ ext {
extName = 'Komga'
pkgNameSuffix = 'all.komga'
extClass = '.KomgaFactory'
extVersionCode = 35
extVersionCode = 36
}
dependencies {

View File

@ -590,7 +590,7 @@ open class Komga(suffix: String = "") : ConfigurableSource, HttpSource() {
private const val PASSWORD_TITLE = "Password"
private const val PASSWORD_DEFAULT = ""
private val supportedImageTypes = listOf("image/jpeg", "image/png", "image/gif", "image/webp")
private val supportedImageTypes = listOf("image/jpeg", "image/png", "image/gif", "image/webp", "image/jxl")
private const val TYPE_SERIES = "Series"
private const val TYPE_READLISTS = "Read lists"