TruyenQQ, NhatTruyen and Nettruyen domain change (#9064)
* Update build.gradle * Update TruyenQQ.kt * Update WPComicsGenerator.kt * Update NhatTruyen.kt * Update NetTruyen.kt
This commit is contained in:
parent
c4c4af5430
commit
ccffd61b36
|
@ -9,7 +9,7 @@ import okhttp3.Request
|
|||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class NetTruyen : WPComics("NetTruyen", "http://www.nettruyenvip.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
|
||||
class NetTruyen : WPComics("NetTruyen", "http://www.nettruyenpro.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
|
||||
override fun headersBuilder(): Headers.Builder = Headers.Builder()
|
||||
override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build())
|
||||
override fun getFilterList(): FilterList {
|
||||
|
|
|
@ -9,7 +9,7 @@ import okhttp3.Request
|
|||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class NhatTruyen : WPComics("NhatTruyen", "http://nhattruyenhay.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
|
||||
class NhatTruyen : WPComics("NhatTruyen", "http://www.nettruyenvip.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
|
||||
override fun headersBuilder(): Headers.Builder = Headers.Builder()
|
||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/the-loai?keyword=$query&page=$page", headers)
|
||||
override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build())
|
||||
|
|
|
@ -14,8 +14,8 @@ class WPComicsGenerator : ThemeSourceGenerator {
|
|||
|
||||
override val sources = listOf(
|
||||
MultiLang("MangaToro", "https://mangatoro.com", listOf("en", "ja")),
|
||||
SingleLang("NetTruyen", "http://www.nettruyenvip.com", "vi", overrideVersionCode = 4),
|
||||
SingleLang("NhatTruyen", "http://nhattruyenhay.com", "vi", overrideVersionCode = 4),
|
||||
SingleLang("NetTruyen", "http://www.nettruyenpro.com", "vi", overrideVersionCode = 5),
|
||||
SingleLang("NhatTruyen", "http://www.nettruyenvip.com", "vi", overrideVersionCode = 5),
|
||||
SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3),
|
||||
SingleLang("XOXO Comics", "https://xoxocomics.com", "en", className = "XoxoComics", overrideVersionCode = 1),
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'TruyenQQ'
|
||||
pkgNameSuffix = 'vi.truyenqq'
|
||||
extClass = '.TruyenQQ'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -22,7 +22,7 @@ class TruyenQQ : ParsedHttpSource() {
|
|||
|
||||
override val lang: String = "vi"
|
||||
|
||||
override val baseUrl: String = "https://truyenqq.net"
|
||||
override val baseUrl: String = "https://truyenqqtop.com"
|
||||
|
||||
override val supportsLatest: Boolean = true
|
||||
|
||||
|
|
Loading…
Reference in New Issue