diff --git a/src/zh/happymh/build.gradle b/src/zh/happymh/build.gradle index f9961d493..6344dfa31 100644 --- a/src/zh/happymh/build.gradle +++ b/src/zh/happymh/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Happymh' extClass = '.Happymh' - extVersionCode = 8 + extVersionCode = 9 } apply from: "$rootDir/common.gradle" diff --git a/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt b/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt index af1342133..9ce006d04 100644 --- a/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt +++ b/src/zh/happymh/src/eu/kanade/tachiyomi/extension/zh/happymh/Happymh.kt @@ -154,6 +154,13 @@ class Happymh : HttpSource(), ConfigurableSource { override fun imageUrlParse(response: Response): String = throw UnsupportedOperationException() + override fun imageRequest(page: Page): Request { + val header = headersBuilder() + .set("Referer", "$baseUrl/") + .build() + return GET(page.imageUrl!!, header) + } + override fun setupPreferenceScreen(screen: PreferenceScreen) { val context = screen.context