diff --git a/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt b/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt index bd4f8bfa4..a162234ea 100644 --- a/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt +++ b/lib-multisrc/keyoapp/src/eu/kanade/tachiyomi/multisrc/keyoapp/Keyoapp.kt @@ -206,16 +206,21 @@ abstract class Keyoapp( } // Details + protected open val descriptionSelector: String = "div:containsOwn(Synopsis) ~ div" + protected open val statusSelector: String = "div:has(span:containsOwn(Status)) ~ div" + protected open val authorSelector: String = "div:has(span:containsOwn(Author)) ~ div" + protected open val artistSelector: String = "div:has(span:containsOwn(Artist)) ~ div" + protected open val genreSelector: String = "div:has(span:containsOwn(Type)) ~ div" override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply { title = document.selectFirst("div.grid > h1")!!.text() thumbnail_url = document.getImageUrl("div[class*=photoURL]") - description = document.selectFirst("div:containsOwn(Synopsis) ~ div")?.text() - status = document.selectFirst("div:has(span:containsOwn(Status)) ~ div").parseStatus() - author = document.selectFirst("div:has(span:containsOwn(Author)) ~ div")?.text() - artist = document.selectFirst("div:has(span:containsOwn(Artist)) ~ div")?.text() + description = document.selectFirst(descriptionSelector)?.text() + status = document.selectFirst(statusSelector).parseStatus() + author = document.selectFirst(authorSelector)?.text() + artist = document.selectFirst(artistSelector)?.text() genre = buildList { - document.selectFirst("div:has(span:containsOwn(Type)) ~ div")?.text()?.replaceFirstChar { + document.selectFirst(genreSelector)?.text()?.replaceFirstChar { if (it.isLowerCase()) { it.titlecase( Locale.getDefault(), diff --git a/src/en/rezoscans/build.gradle b/src/en/rezoscans/build.gradle index da9c9ddc4..40bc72719 100644 --- a/src/en/rezoscans/build.gradle +++ b/src/en/rezoscans/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.RezoScans' themePkg = 'keyoapp' baseUrl = 'https://rezoscans.com' - overrideVersionCode = 1 + overrideVersionCode = 2 isNsfw = false } diff --git a/src/en/rezoscans/src/eu/kanade/tachiyomi/extension/en/rezoscans/RezoScans.kt b/src/en/rezoscans/src/eu/kanade/tachiyomi/extension/en/rezoscans/RezoScans.kt index 6af18a08b..19a650993 100644 --- a/src/en/rezoscans/src/eu/kanade/tachiyomi/extension/en/rezoscans/RezoScans.kt +++ b/src/en/rezoscans/src/eu/kanade/tachiyomi/extension/en/rezoscans/RezoScans.kt @@ -6,4 +6,10 @@ class RezoScans : Keyoapp( "Rezo Scans", "https://rezoscans.com", "en", -) +) { + override val descriptionSelector: String = "div.grid > div.overflow-hidden > p" + override val statusSelector: String = "div[alt=Status]" + override val authorSelector: String = "div[alt=Author]" + override val artistSelector: String = "div[alt=Artist]" + override val genreSelector: String = "div[alt='Series Type']" +}