From c353c9a78007329827ba41b637cb160005e0fcf7 Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Sat, 13 Jan 2024 18:47:50 +0000 Subject: [PATCH] Update domain for NhatTruyen (#220) --- multisrc/overrides/wpcomics/nhattruyen/src/NhatTruyen.kt | 2 +- .../eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/multisrc/overrides/wpcomics/nhattruyen/src/NhatTruyen.kt b/multisrc/overrides/wpcomics/nhattruyen/src/NhatTruyen.kt index b9555818f..4c78c879d 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://nhattruyenmax.com", "vi", SimpleDateFormat("dd/MM/yy", Locale.getDefault()), null) { +class NhatTruyen : WPComics("NhatTruyen", "https://nhattruyento.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 d97510e4c..673a7f0ae 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 @@ -13,7 +13,7 @@ class WPComicsGenerator : ThemeSourceGenerator { override val sources = listOf( SingleLang("NetTruyen", "https://www.nettruyenclub.com", "vi", overrideVersionCode = 21), - SingleLang("NhatTruyen", "https://nhattruyenmax.com", "vi", overrideVersionCode = 13), + SingleLang("NhatTruyen", "https://nhattruyento.com", "vi", overrideVersionCode = 14), SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3), SingleLang("XOXO Comics", "https://xoxocomic.com", "en", className = "XoxoComics", overrideVersionCode = 3), )