VCPVMP: Fix images (#16774)

Fix images
This commit is contained in:
Rolando Lecca 2023-06-17 09:00:04 -05:00 committed by GitHub
parent 2487862a00
commit b75d79b98f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'VCPVMP' extName = 'VCPVMP'
pkgNameSuffix = "es.vcpvmp" pkgNameSuffix = "es.vcpvmp"
extClass = '.VCPVMPFactory' extClass = '.VCPVMPFactory'
extVersionCode = 8 extVersionCode = 9
isNsfw = true isNsfw = true
} }

View File

@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.model.UpdateStrategy import eu.kanade.tachiyomi.source.model.UpdateStrategy
import eu.kanade.tachiyomi.source.online.ParsedHttpSource import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.Headers
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import okhttp3.Request import okhttp3.Request
import org.jsoup.nodes.Document 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 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 latestUpdatesRequest(page: Int) = throw UnsupportedOperationException("Not used")
override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used") override fun latestUpdatesSelector() = throw UnsupportedOperationException("Not used")