Komga: fix pdf image file issue (#5266)

This commit is contained in:
lamaxama 2024-09-28 17:19:31 +08:00 committed by GitHub
parent f05b4f13e9
commit 8c08f2a045
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Komga'
extClass = '.KomgaFactory'
extVersionCode = 57
extVersionCode = 58
}
apply from: "$rootDir/common.gradle"

View File

@ -251,6 +251,10 @@ open class Komga(private val suffix: String = "") : ConfigurableSource, Unmetere
override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException()
override fun imageRequest(page: Page): Request {
return GET(page.imageUrl!!, headers = headersBuilder().add("Accept", "image/*,*/*;q=0.8").build())
}
override fun getFilterList(): FilterList {
fetchFilterOptions()