From 8c08f2a04578210c6afa8cb129d355ca39e31c4a Mon Sep 17 00:00:00 2001 From: lamaxama <163385206+lamaxama@users.noreply.github.com> Date: Sat, 28 Sep 2024 17:19:31 +0800 Subject: [PATCH] Komga: fix pdf image file issue (#5266) --- src/all/komga/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/all/komga/build.gradle b/src/all/komga/build.gradle index 89d5d1635..d5ece1867 100644 --- a/src/all/komga/build.gradle +++ b/src/all/komga/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Komga' extClass = '.KomgaFactory' - extVersionCode = 57 + extVersionCode = 58 } apply from: "$rootDir/common.gradle" diff --git a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt index d452c0646..349d9fae8 100644 --- a/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt +++ b/src/all/komga/src/eu/kanade/tachiyomi/extension/all/komga/Komga.kt @@ -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()