NetTruyen & NhatTruyen: update url (#14060)

Closes #14035
Closes #14036
This commit is contained in:
Luqman 2022-11-01 03:59:39 +07:00 committed by GitHub
parent c36cec3cbe
commit 407f1b1a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

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

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

View File

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

View File

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