Manhuadui - update domain name (#3345)

This commit is contained in:
Mike 2020-05-28 14:35:21 -04:00 committed by GitHub
parent df43c023ca
commit 725226fed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Manhuadui'
pkgNameSuffix = 'zh.manhuadui'
extClass = '.Manhuadui'
extVersionCode = 6
extVersionCode = 7
libVersion = '1.2'
}

View File

@ -12,6 +12,7 @@ import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import javax.crypto.Cipher
import javax.crypto.spec.IvParameterSpec
import javax.crypto.spec.SecretKeySpec
import okhttp3.Headers
import okhttp3.HttpUrl
import okhttp3.Request
import okhttp3.Response
@ -21,10 +22,10 @@ import org.jsoup.nodes.Element
class Manhuadui : ParsedHttpSource() {
override val name = "漫画堆"
override val baseUrl = "https://www.manhuadui.com"
override val baseUrl = "https://www.manhuabei.com"
override val lang = "zh"
override val supportsLatest = true
val imageServer = arrayOf("https://mhcdn.manhuazj.com", "https://res.333dm.com", "https://res02.333dm.com")
private val imageServer = arrayOf("https://mhcdn.manhuazj.com", "https://res.333dm.com", "https://res02.333dm.com")
override fun popularMangaSelector() = "li.list-comic"
override fun searchMangaSelector() = popularMangaSelector()
@ -35,7 +36,7 @@ class Manhuadui : ParsedHttpSource() {
override fun popularMangaNextPageSelector() = searchMangaNextPageSelector()
override fun latestUpdatesNextPageSelector() = searchMangaNextPageSelector()
override fun headersBuilder() = super.headersBuilder()
override fun headersBuilder(): Headers.Builder = super.headersBuilder()
.add("Referer", baseUrl)
override fun popularMangaRequest(page: Int) = GET("$baseUrl/list_$page/", headers)
@ -116,7 +117,7 @@ class Manhuadui : ParsedHttpSource() {
}
// ref: https://jueyue.iteye.com/blog/1830792
fun decryptAES(value: String, key: String, iv: String): String? {
private fun decryptAES(value: String, key: String, iv: String): String? {
try {
val secretKey = SecretKeySpec(key.toByteArray(), "AES")
val ivParams = IvParameterSpec(iv.toByteArray())
@ -133,7 +134,7 @@ class Manhuadui : ParsedHttpSource() {
return null
}
fun decrypt(code: String): String? {
private fun decrypt(code: String): String? {
val key = "123456781234567G"
val iv = "ABCDEF1G34123412"