diff --git a/lib-multisrc/zerotheme/build.gradle.kts b/lib-multisrc/zerotheme/build.gradle.kts index 9dce2478c..e2f11e9c1 100644 --- a/lib-multisrc/zerotheme/build.gradle.kts +++ b/lib-multisrc/zerotheme/build.gradle.kts @@ -2,4 +2,4 @@ plugins { id("lib-multisrc") } -baseVersionCode = 2 +baseVersionCode = 3 diff --git a/lib-multisrc/zerotheme/src/eu/kanade/tachiyomi/multisrc/zerotheme/ZeroTheme.kt b/lib-multisrc/zerotheme/src/eu/kanade/tachiyomi/multisrc/zerotheme/ZeroTheme.kt index ea0841b58..e2ca56634 100644 --- a/lib-multisrc/zerotheme/src/eu/kanade/tachiyomi/multisrc/zerotheme/ZeroTheme.kt +++ b/lib-multisrc/zerotheme/src/eu/kanade/tachiyomi/multisrc/zerotheme/ZeroTheme.kt @@ -27,7 +27,7 @@ abstract class ZeroTheme( open val cdnUrl: String = "https://cdn.${baseUrl.substringAfterLast("/")}" - open val imageLocation: String = "images" + open val imageLocation: String = "/images" open val mangaSubString: String by lazy { val response = client.newCall(GET(baseUrl, headers)).execute() @@ -42,7 +42,7 @@ abstract class ZeroTheme( open val chapterSubString: String = "chapter" - private val sourceLocation: String get() = "$cdnUrl/$imageLocation" + open val sourceLocation: String get() = "$cdnUrl$imageLocation" // =========================== Popular ================================ diff --git a/src/pt/egotoons/src/eu/kanade/tachiyomi/extension/pt/egotoons/EgoToons.kt b/src/pt/egotoons/src/eu/kanade/tachiyomi/extension/pt/egotoons/EgoToons.kt index ce38c2398..7834ce431 100644 --- a/src/pt/egotoons/src/eu/kanade/tachiyomi/extension/pt/egotoons/EgoToons.kt +++ b/src/pt/egotoons/src/eu/kanade/tachiyomi/extension/pt/egotoons/EgoToons.kt @@ -10,9 +10,13 @@ class EgoToons : ZeroTheme( ) { override val versionId = 2 + override val supportsLatest = false + override val client = super.client.newBuilder() .rateLimit(2) .build() - override val imageLocation = "image-db" + override val imageLocation = "/image-db" + + override fun fetchPopularManga(page: Int) = fetchLatestUpdates(page) } diff --git a/src/pt/lertoons/build.gradle b/src/pt/lertoons/build.gradle index 17a9d9f8d..9b7668da6 100644 --- a/src/pt/lertoons/build.gradle +++ b/src/pt/lertoons/build.gradle @@ -2,7 +2,7 @@ ext { extName = 'Ler Toons' extClass = '.LerToons' themePkg = 'zerotheme' - baseUrl = 'https://lertoons.com' + baseUrl = 'https://www.unionmangas.com' overrideVersionCode = 0 isNsfw = true } diff --git a/src/pt/lertoons/src/eu/kanade/tachiyomi/extension/pt/lertoons/LerToons.kt b/src/pt/lertoons/src/eu/kanade/tachiyomi/extension/pt/lertoons/LerToons.kt index 3e69e31c8..edacc0004 100644 --- a/src/pt/lertoons/src/eu/kanade/tachiyomi/extension/pt/lertoons/LerToons.kt +++ b/src/pt/lertoons/src/eu/kanade/tachiyomi/extension/pt/lertoons/LerToons.kt @@ -5,7 +5,7 @@ import eu.kanade.tachiyomi.network.interceptor.rateLimit class LerToons : ZeroTheme( "Ler Toons", - "https://lertoons.com", + "https://www.unionmangas.com", "pt-BR", ) { override val versionId = 3 @@ -14,5 +14,7 @@ class LerToons : ZeroTheme( .rateLimit(2) .build() - override val mangaSubString: String = "manga" + override val cdnUrl: String = "https://fullmangas.one" + + override val imageLocation = "" }