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:
Lefan 2024-11-07 06:06:23 -05:00 committed by Draff
parent 5ab2cea54b
commit 76532be103
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
10 changed files with 22 additions and 17 deletions

View File

@ -2,8 +2,8 @@ ext {
extName = 'ManyToon'
extClass = '.ManyToon'
themePkg = 'madara'
baseUrl = 'https://manytoon.com'
overrideVersionCode = 8
baseUrl = 'https://manytoon.org'
overrideVersionCode = 9
isNsfw = true
}

View File

@ -11,7 +11,7 @@ import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.Request
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"

View File

@ -1,7 +1,7 @@
ext {
extName = 'Ikigai Mangas'
extClass = '.IkigaiMangas'
extVersionCode = 18
extVersionCode = 19
isNsfw = true
}

View File

@ -33,7 +33,12 @@ import kotlin.concurrent.thread
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"
@ -42,10 +47,10 @@ class IkigaiMangas : HttpSource(), ConfigurableSource {
try {
val initClient = network.cloudflareClient
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")
?: 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 host = initClient.newCall(GET(domain, headers)).execute().request.url.host
val newDomain = "https://$host"

View File

@ -2,8 +2,8 @@ ext {
extName = 'ManhwaDesu'
extClass = '.ManhwaDesu'
themePkg = 'mangathemesia'
baseUrl = 'https://manhwadesu.cc'
overrideVersionCode = 5
baseUrl = 'https://manhwadesu.my'
overrideVersionCode = 6
isNsfw = true
}

View File

@ -9,7 +9,7 @@ import java.util.Locale
class ManhwaDesu : MangaThemesia(
"ManhwaDesu",
"https://manhwadesu.cc",
"https://manhwadesu.my",
"id",
"/komik",
SimpleDateFormat("MMMM dd, yyyy", Locale("id")),

View File

@ -2,8 +2,8 @@ ext {
extName = 'Gri Melek'
extClass = '.Siyahmelek'
themePkg = 'madara'
baseUrl = 'https://grimelek.pro'
overrideVersionCode = 9
baseUrl = 'https://grimelek.dev'
overrideVersionCode = 10
isNsfw = true
}

View File

@ -9,7 +9,7 @@ import java.util.Locale
class Siyahmelek : Madara(
"Gri Melek",
"https://grimelek.pro",
"https://grimelek.dev",
"tr",
SimpleDateFormat("dd MMM yyyy", Locale("tr")),
) {
@ -20,7 +20,7 @@ class Siyahmelek : Madara(
override val useNewChapterEndpoint = true
override val useLoadMoreRequest = LoadMoreStrategy.Always
override val useLoadMoreRequest = LoadMoreStrategy.Never
// Skip fake image
// OK: <div class="page-break no-gaps">

View File

@ -2,8 +2,8 @@ ext {
extName = "SayHentai"
extClass = ".SayHentai"
themePkg = "manhwaz"
baseUrl = "https://sayhentai.one"
overrideVersionCode = 7
baseUrl = "https://sayhentai.art"
overrideVersionCode = 8
isNsfw = true
}

View File

@ -4,7 +4,7 @@ import eu.kanade.tachiyomi.multisrc.manhwaz.ManhwaZ
class SayHentai : ManhwaZ(
"SayHentai",
"https://sayhentai.one",
"https://sayhentai.art",
"vi",
mangaDetailsAuthorHeading = "Tác giả",
mangaDetailsStatusHeading = "Trạng thái",