Changed domain nettruyen and nhattruyen (#14357)
This commit is contained in:
parent
07e58c5ea7
commit
62da5c3b97
|
@ -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 {
|
||||
|
|
|
@ -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())
|
||||
|
|
|
@ -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),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue