Update nettruyen and nhattruyen to latest domain (#14378)

* Changed domain nettruyen and nhattruyen

* Change nettruyen and nhattruyen url
This commit is contained in:
Tran Lam Nhat Nam 2022-11-26 07:18:19 +07:00 committed by GitHub
parent b369252c51
commit a556207c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import okhttp3.Request
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
class NetTruyen : WPComics("NetTruyen", "https://www.nettruyenon.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) { class NetTruyen : WPComics("NetTruyen", "https://www.nettruyentv.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
override fun headersBuilder(): Headers.Builder = Headers.Builder() override fun headersBuilder(): Headers.Builder = Headers.Builder()
override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build()) override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build())
override fun getFilterList(): FilterList { override fun getFilterList(): FilterList {

View File

@ -9,7 +9,7 @@ import okhttp3.Request
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
class NhatTruyen : WPComics("NhatTruyen", "https://nhattruyenon.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) { class NhatTruyen : WPComics("NhatTruyen", "https://nhattruyentv.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) {
override fun headersBuilder(): Headers.Builder = Headers.Builder() 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 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()) override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build())

View File

@ -12,8 +12,8 @@ class WPComicsGenerator : ThemeSourceGenerator {
override val baseVersionCode: Int = 2 override val baseVersionCode: Int = 2
override val sources = listOf( override val sources = listOf(
SingleLang("NetTruyen", "https://www.nettruyenon.com", "vi", overrideVersionCode = 11), SingleLang("NetTruyen", "https://www.nettruyentv.com", "vi", overrideVersionCode = 12),
SingleLang("NhatTruyen", "https://nhattruyenon.com", "vi", overrideVersionCode = 9), SingleLang("NhatTruyen", "https://nhattruyentv.com", "vi", overrideVersionCode = 10),
SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3), SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3),
SingleLang("XOXO Comics", "https://xoxocomics.com", "en", className = "XoxoComics", overrideVersionCode = 1), SingleLang("XOXO Comics", "https://xoxocomics.com", "en", className = "XoxoComics", overrideVersionCode = 1),
) )