Change domain NetTruyen (#11836)

* Change domain NetTruyen

* Increase overrideVersionCode for NetTruyen
This commit is contained in:
Khanh Nguyen 2022-05-14 05:19:33 +07:00 committed by GitHub
parent 69cb499675
commit e3cd553ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import okhttp3.Request
import java.text.SimpleDateFormat
import java.util.Locale
class NetTruyen : WPComics("NetTruyen", "http://www.nettruyenmoi.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
class NetTruyen : WPComics("NetTruyen", "http://www.nettruyenco.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 {

View File

@ -93,7 +93,7 @@ abstract class WPComics(
addQueryParameter("sort", "0")
}
GET(url.toString().replace("www.nettruyen.com/tim-truyen?status=2&", "www.nettruyen.com/truyen-full?"), headers)
GET(url.toString().replace("www.nettruyenco.com/tim-truyen?status=2&", "www.nettruyenco.com/truyen-full?"), headers)
}
}

View File

@ -14,7 +14,7 @@ class WPComicsGenerator : ThemeSourceGenerator {
override val sources = listOf(
MultiLang("MangaToro", "https://mangatoro.com", listOf("en", "ja"), overrideVersionCode = 1),
SingleLang("NetTruyen", "http://www.nettruyenmoi.com", "vi", overrideVersionCode = 7),
SingleLang("NetTruyen", "http://www.nettruyenco.com", "vi", overrideVersionCode = 8),
SingleLang("NhatTruyen", "http://www.nhattruyenvip.com", "vi", overrideVersionCode = 6),
SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3),
SingleLang("XOXO Comics", "https://xoxocomics.com", "en", className = "XoxoComics", overrideVersionCode = 1),