NetTruyen & NhatTruyen: update url (#14060)
Closes #14035 Closes #14036
This commit is contained in:
parent
c36cec3cbe
commit
407f1b1a35
|
@ -9,7 +9,7 @@ import okhttp3.Request
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Locale
|
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 headersBuilder(): Headers.Builder = Headers.Builder()
|
||||||
override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build())
|
override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build())
|
||||||
override fun getFilterList(): FilterList {
|
override fun getFilterList(): FilterList {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import okhttp3.Request
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Locale
|
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 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 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())
|
override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().add("Referer", baseUrl).build())
|
||||||
|
|
|
@ -93,7 +93,7 @@ abstract class WPComics(
|
||||||
addQueryParameter("sort", "0")
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,8 @@ class WPComicsGenerator : ThemeSourceGenerator {
|
||||||
override val baseVersionCode: Int = 2
|
override val baseVersionCode: Int = 2
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
SingleLang("NetTruyen", "http://www.nettruyenme.com", "vi", overrideVersionCode = 9),
|
SingleLang("NetTruyen", "https://www.nettruyenin.com", "vi", overrideVersionCode = 10),
|
||||||
SingleLang("NhatTruyen", "https://nhattruyenone.com", "vi", overrideVersionCode = 7),
|
SingleLang("NhatTruyen", "https://nhattruyenin.com", "vi", overrideVersionCode = 8),
|
||||||
SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3),
|
SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 3),
|
||||||
SingleLang("XOXO Comics", "https://xoxocomics.com", "en", className = "XoxoComics", overrideVersionCode = 1),
|
SingleLang("XOXO Comics", "https://xoxocomics.com", "en", className = "XoxoComics", overrideVersionCode = 1),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue