LerToons: Update domain (#10490)

Update domain
This commit is contained in:
Chopper 2025-09-13 11:04:13 -03:00 committed by Draff
parent 325905f741
commit ae0992fc73
Signed by: Draff
GPG Key ID: E8A89F3211677653
5 changed files with 13 additions and 7 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc") id("lib-multisrc")
} }
baseVersionCode = 2 baseVersionCode = 3

View File

@ -27,7 +27,7 @@ abstract class ZeroTheme(
open val cdnUrl: String = "https://cdn.${baseUrl.substringAfterLast("/")}" open val cdnUrl: String = "https://cdn.${baseUrl.substringAfterLast("/")}"
open val imageLocation: String = "images" open val imageLocation: String = "/images"
open val mangaSubString: String by lazy { open val mangaSubString: String by lazy {
val response = client.newCall(GET(baseUrl, headers)).execute() val response = client.newCall(GET(baseUrl, headers)).execute()
@ -42,7 +42,7 @@ abstract class ZeroTheme(
open val chapterSubString: String = "chapter" open val chapterSubString: String = "chapter"
private val sourceLocation: String get() = "$cdnUrl/$imageLocation" open val sourceLocation: String get() = "$cdnUrl$imageLocation"
// =========================== Popular ================================ // =========================== Popular ================================

View File

@ -10,9 +10,13 @@ class EgoToons : ZeroTheme(
) { ) {
override val versionId = 2 override val versionId = 2
override val supportsLatest = false
override val client = super.client.newBuilder() override val client = super.client.newBuilder()
.rateLimit(2) .rateLimit(2)
.build() .build()
override val imageLocation = "image-db" override val imageLocation = "/image-db"
override fun fetchPopularManga(page: Int) = fetchLatestUpdates(page)
} }

View File

@ -2,7 +2,7 @@ ext {
extName = 'Ler Toons' extName = 'Ler Toons'
extClass = '.LerToons' extClass = '.LerToons'
themePkg = 'zerotheme' themePkg = 'zerotheme'
baseUrl = 'https://lertoons.com' baseUrl = 'https://www.unionmangas.com'
overrideVersionCode = 0 overrideVersionCode = 0
isNsfw = true isNsfw = true
} }

View File

@ -5,7 +5,7 @@ import eu.kanade.tachiyomi.network.interceptor.rateLimit
class LerToons : ZeroTheme( class LerToons : ZeroTheme(
"Ler Toons", "Ler Toons",
"https://lertoons.com", "https://www.unionmangas.com",
"pt-BR", "pt-BR",
) { ) {
override val versionId = 3 override val versionId = 3
@ -14,5 +14,7 @@ class LerToons : ZeroTheme(
.rateLimit(2) .rateLimit(2)
.build() .build()
override val mangaSubString: String = "manga" override val cdnUrl: String = "https://fullmangas.one"
override val imageLocation = ""
} }