diff --git a/multisrc/overrides/wpmangastream/geassscanlator/src/GeassScanlator.kt b/multisrc/overrides/wpmangastream/geassscanlator/src/GeassScanlator.kt index 038cd179a..d80e0f6f6 100644 --- a/multisrc/overrides/wpmangastream/geassscanlator/src/GeassScanlator.kt +++ b/multisrc/overrides/wpmangastream/geassscanlator/src/GeassScanlator.kt @@ -2,7 +2,10 @@ package eu.kanade.tachiyomi.extension.pt.geassscanlator import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream +import eu.kanade.tachiyomi.source.model.SChapter +import eu.kanade.tachiyomi.util.asJsoup import okhttp3.OkHttpClient +import okhttp3.Response import java.text.SimpleDateFormat import java.util.Locale import java.util.concurrent.TimeUnit @@ -20,6 +23,13 @@ class GeassScanlator : WPMangaStream( override val altName: String = "Nome alternativo: " + override fun chapterListParse(response: Response): List { + val document = response.asJsoup() + + return document.select(chapterListSelector()) + .map { chapterFromElement(it) } + } + // [...document.querySelectorAll('ul.genrez li')] // .map(x => `Genre("${x.querySelector("label").innerHTML}", "${x.querySelector("input").value}")`) // .join(',\n') diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStream.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStream.kt index 64da1a333..bd0cb3c3f 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStream.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStream.kt @@ -227,7 +227,7 @@ abstract class WPMangaStream( } fun parseChapterDate(date: String): Long { - return if (date.contains("ago")) { + return if (date.endsWith("ago")) { val value = date.split(' ')[0].toInt() when { "min" in date -> Calendar.getInstance().apply { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt index 27cb51ae5..7ce40cd57 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt @@ -46,7 +46,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator { SingleLang("Sekte Doujin", "https://sektedoujin.xyz", "id", isNsfw = true, overrideVersionCode = 2), SingleLang("Lemon Juice Scan", "https://lemonjuicescan.com", "pt-BR", isNsfw = true, overrideVersionCode = 1), SingleLang("Phoenix Fansub", "https://phoenixfansub.com", "es"), - SingleLang("Geass Scanlator", "https://geassscan.xyz", "pt-BR", overrideVersionCode = 1) + SingleLang("Geass Scanlator", "https://geassscan.xyz", "pt-BR", overrideVersionCode = 2) ) companion object {