Update some domains (#5793)
* sayhentai update domain * update grimelek domain * update domain for ikigaimangas * update domain for manytoon * update domain for manhwadesu * change load more strategy * ikigaimangas baseurl getter
This commit is contained in:
parent
5ab2cea54b
commit
76532be103
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'ManyToon'
|
extName = 'ManyToon'
|
||||||
extClass = '.ManyToon'
|
extClass = '.ManyToon'
|
||||||
themePkg = 'madara'
|
themePkg = 'madara'
|
||||||
baseUrl = 'https://manytoon.com'
|
baseUrl = 'https://manytoon.org'
|
||||||
overrideVersionCode = 8
|
overrideVersionCode = 9
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||||
import okhttp3.Request
|
import okhttp3.Request
|
||||||
import org.jsoup.nodes.Document
|
import org.jsoup.nodes.Document
|
||||||
|
|
||||||
class ManyToon : Madara("ManyToon", "https://manytoon.com", "en") {
|
class ManyToon : Madara("ManyToon", "https://manytoon.org", "en") {
|
||||||
|
|
||||||
override val mangaSubString = "comic"
|
override val mangaSubString = "comic"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Ikigai Mangas'
|
extName = 'Ikigai Mangas'
|
||||||
extClass = '.IkigaiMangas'
|
extClass = '.IkigaiMangas'
|
||||||
extVersionCode = 18
|
extVersionCode = 19
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,12 @@ import kotlin.concurrent.thread
|
||||||
|
|
||||||
class IkigaiMangas : HttpSource(), ConfigurableSource {
|
class IkigaiMangas : HttpSource(), ConfigurableSource {
|
||||||
|
|
||||||
override val baseUrl = "https://ikigaimangas.com"
|
private val isCi = System.getenv("CI") == "true"
|
||||||
|
|
||||||
|
override val baseUrl get() = when {
|
||||||
|
isCi -> defaultBaseUrl
|
||||||
|
else -> preferences.getPrefBaseUrl()
|
||||||
|
}
|
||||||
|
|
||||||
private val defaultBaseUrl: String = "https://lectorikigai.acamu.net"
|
private val defaultBaseUrl: String = "https://lectorikigai.acamu.net"
|
||||||
|
|
||||||
|
@ -42,10 +47,10 @@ class IkigaiMangas : HttpSource(), ConfigurableSource {
|
||||||
try {
|
try {
|
||||||
val initClient = network.cloudflareClient
|
val initClient = network.cloudflareClient
|
||||||
val headers = super.headersBuilder().build()
|
val headers = super.headersBuilder().build()
|
||||||
val document = initClient.newCall(GET(baseUrl, headers)).execute().asJsoup()
|
val document = initClient.newCall(GET("https://ikigaimangas.com", headers)).execute().asJsoup()
|
||||||
val scriptUrl = document.selectFirst("div[on:click]:containsOwn(Nuevo dominio)")?.attr("on:click")
|
val scriptUrl = document.selectFirst("div[on:click]:containsOwn(Nuevo dominio)")?.attr("on:click")
|
||||||
?: preferences.getPrefBaseUrl()
|
?: preferences.getPrefBaseUrl()
|
||||||
val script = initClient.newCall(GET("$baseUrl/build/$scriptUrl", headers)).execute().body.string()
|
val script = initClient.newCall(GET("https://ikigaimangas.com/build/$scriptUrl", headers)).execute().body.string()
|
||||||
val domain = script.substringAfter("window.open(\"").substringBefore("\"")
|
val domain = script.substringAfter("window.open(\"").substringBefore("\"")
|
||||||
val host = initClient.newCall(GET(domain, headers)).execute().request.url.host
|
val host = initClient.newCall(GET(domain, headers)).execute().request.url.host
|
||||||
val newDomain = "https://$host"
|
val newDomain = "https://$host"
|
||||||
|
|
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'ManhwaDesu'
|
extName = 'ManhwaDesu'
|
||||||
extClass = '.ManhwaDesu'
|
extClass = '.ManhwaDesu'
|
||||||
themePkg = 'mangathemesia'
|
themePkg = 'mangathemesia'
|
||||||
baseUrl = 'https://manhwadesu.cc'
|
baseUrl = 'https://manhwadesu.my'
|
||||||
overrideVersionCode = 5
|
overrideVersionCode = 6
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Locale
|
||||||
|
|
||||||
class ManhwaDesu : MangaThemesia(
|
class ManhwaDesu : MangaThemesia(
|
||||||
"ManhwaDesu",
|
"ManhwaDesu",
|
||||||
"https://manhwadesu.cc",
|
"https://manhwadesu.my",
|
||||||
"id",
|
"id",
|
||||||
"/komik",
|
"/komik",
|
||||||
SimpleDateFormat("MMMM dd, yyyy", Locale("id")),
|
SimpleDateFormat("MMMM dd, yyyy", Locale("id")),
|
||||||
|
|
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = 'Gri Melek'
|
extName = 'Gri Melek'
|
||||||
extClass = '.Siyahmelek'
|
extClass = '.Siyahmelek'
|
||||||
themePkg = 'madara'
|
themePkg = 'madara'
|
||||||
baseUrl = 'https://grimelek.pro'
|
baseUrl = 'https://grimelek.dev'
|
||||||
overrideVersionCode = 9
|
overrideVersionCode = 10
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Locale
|
||||||
|
|
||||||
class Siyahmelek : Madara(
|
class Siyahmelek : Madara(
|
||||||
"Gri Melek",
|
"Gri Melek",
|
||||||
"https://grimelek.pro",
|
"https://grimelek.dev",
|
||||||
"tr",
|
"tr",
|
||||||
SimpleDateFormat("dd MMM yyyy", Locale("tr")),
|
SimpleDateFormat("dd MMM yyyy", Locale("tr")),
|
||||||
) {
|
) {
|
||||||
|
@ -20,7 +20,7 @@ class Siyahmelek : Madara(
|
||||||
|
|
||||||
override val useNewChapterEndpoint = true
|
override val useNewChapterEndpoint = true
|
||||||
|
|
||||||
override val useLoadMoreRequest = LoadMoreStrategy.Always
|
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||||
|
|
||||||
// Skip fake image
|
// Skip fake image
|
||||||
// OK: <div class="page-break no-gaps">
|
// OK: <div class="page-break no-gaps">
|
||||||
|
|
|
@ -2,8 +2,8 @@ ext {
|
||||||
extName = "SayHentai"
|
extName = "SayHentai"
|
||||||
extClass = ".SayHentai"
|
extClass = ".SayHentai"
|
||||||
themePkg = "manhwaz"
|
themePkg = "manhwaz"
|
||||||
baseUrl = "https://sayhentai.one"
|
baseUrl = "https://sayhentai.art"
|
||||||
overrideVersionCode = 7
|
overrideVersionCode = 8
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import eu.kanade.tachiyomi.multisrc.manhwaz.ManhwaZ
|
||||||
|
|
||||||
class SayHentai : ManhwaZ(
|
class SayHentai : ManhwaZ(
|
||||||
"SayHentai",
|
"SayHentai",
|
||||||
"https://sayhentai.one",
|
"https://sayhentai.art",
|
||||||
"vi",
|
"vi",
|
||||||
mangaDetailsAuthorHeading = "Tác giả",
|
mangaDetailsAuthorHeading = "Tác giả",
|
||||||
mangaDetailsStatusHeading = "Trạng thái",
|
mangaDetailsStatusHeading = "Trạng thái",
|
||||||
|
|
Loading…
Reference in New Issue