From 62da5c3b9733ae0a022d0208ee3611fde72f8d03 Mon Sep 17 00:00:00 2001 From: Tran Lam Nhat Nam Date: Thu, 24 Nov 2022 23:01:38 +0700 Subject: [PATCH] Changed domain nettruyen and nhattruyen (#14357) --- multisrc/overrides/wpcomics/nettruyen/src/NetTruyen.kt | 2 +- multisrc/overrides/wpcomics/nhattruyen/src/NhatTruyen.kt | 2 +- .../kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/multisrc/overrides/wpcomics/nettruyen/src/NetTruyen.kt b/multisrc/overrides/wpcomics/nettruyen/src/NetTruyen.kt index bc7c8ae9b..cd17ef5fd 100644 --- a/multisrc/overrides/wpcomics/nettruyen/src/NetTruyen.kt +++ b/multisrc/overrides/wpcomics/nettruyen/src/NetTruyen.kt @@ -9,7 +9,7 @@ import okhttp3.Request import java.text.SimpleDateFormat import java.util.Locale -class NetTruyen : WPComics("NetTruyen", "https://www.nettruyenin.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) { +class NetTruyen : WPComics("NetTruyen", "https://www.nettruyenon.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 { diff --git a/multisrc/overrides/wpcomics/nhattruyen/src/NhatTruyen.kt b/multisrc/overrides/wpcomics/nhattruyen/src/NhatTruyen.kt index 010c4661d..2fe00ae2c 100644 --- a/multisrc/overrides/wpcomics/nhattruyen/src/NhatTruyen.kt +++ b/multisrc/overrides/wpcomics/nhattruyen/src/NhatTruyen.kt @@ -9,7 +9,7 @@ import okhttp3.Request import java.text.SimpleDateFormat import java.util.Locale -class NhatTruyen : WPComics("NhatTruyen", "https://nhattruyenin.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) { +class NhatTruyen : WPComics("NhatTruyen", "https://nhattruyenon.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()) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt index ff5db54d3..dba831d03 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt @@ -12,8 +12,8 @@ class WPComicsGenerator : ThemeSourceGenerator { override val baseVersionCode: Int = 2 override val sources = listOf( - SingleLang("NetTruyen", "https://www.nettruyenin.com", "vi", overrideVersionCode = 10), - SingleLang("NhatTruyen", "https://nhattruyenin.com", "vi", overrideVersionCode = 8), + SingleLang("NetTruyen", "https://www.nettruyenon.com", "vi", overrideVersionCode = 11), + SingleLang("NhatTruyen", "https://nhattruyenon.com", "vi", overrideVersionCode = 9), SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3), SingleLang("XOXO Comics", "https://xoxocomics.com", "en", className = "XoxoComics", overrideVersionCode = 1), )