From b75d79b98f0711bfe3316577cfa2a95ae13c0836 Mon Sep 17 00:00:00 2001 From: Rolando Lecca <90949336+bapeey@users.noreply.github.com> Date: Sat, 17 Jun 2023 09:00:04 -0500 Subject: [PATCH] VCPVMP: Fix images (#16774) Fix images --- src/es/vcpvmp/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/es/vcpvmp/VCPVMP.kt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/es/vcpvmp/build.gradle b/src/es/vcpvmp/build.gradle index 0e404fd63..f6c37d168 100644 --- a/src/es/vcpvmp/build.gradle +++ b/src/es/vcpvmp/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'VCPVMP' pkgNameSuffix = "es.vcpvmp" extClass = '.VCPVMPFactory' - extVersionCode = 8 + extVersionCode = 9 isNsfw = true } diff --git a/src/es/vcpvmp/src/eu/kanade/tachiyomi/extension/es/vcpvmp/VCPVMP.kt b/src/es/vcpvmp/src/eu/kanade/tachiyomi/extension/es/vcpvmp/VCPVMP.kt index 9119e3fea..6d3a77c2f 100644 --- a/src/es/vcpvmp/src/eu/kanade/tachiyomi/extension/es/vcpvmp/VCPVMP.kt +++ b/src/es/vcpvmp/src/eu/kanade/tachiyomi/extension/es/vcpvmp/VCPVMP.kt @@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.model.SManga import eu.kanade.tachiyomi.source.model.UpdateStrategy import eu.kanade.tachiyomi.source.online.ParsedHttpSource +import okhttp3.Headers import okhttp3.HttpUrl.Companion.toHttpUrlOrNull import okhttp3.Request import org.jsoup.nodes.Document @@ -20,6 +21,11 @@ open class VCPVMP(override val name: String, override val baseUrl: String) : Par override val supportsLatest: Boolean = false + override fun headersBuilder(): Headers.Builder { + return Headers.Builder() + .add("Referer", "$baseUrl/") + } + override fun latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used") override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used")