NetTruyen and NhatTruyen urls (#8099)

* Update WPComicsGenerator.kt

* Update NetTruyen.kt

* Update NhatTruyen.kt

* Update WPComicsGenerator.kt
This commit is contained in:
haruki-takeshi 2021-07-14 16:49:58 +07:00 committed by GitHub
parent 2d3756642c
commit 69ca099849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

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