From 22b48ab3ca1b05d8c3876482db88956ffa7053e7 Mon Sep 17 00:00:00 2001 From: SkiFire13 Date: Fri, 27 Mar 2020 21:52:40 +0100 Subject: [PATCH] Fixed title parsing for DisasterScans's mangaDetailsParse (#2529) Fixed title parsing for DisasterScans's mangaDetailsParse --- src/all/madara/build.gradle | 2 +- .../tachiyomi/extension/all/madara/MadaraFactory.kt | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/all/madara/build.gradle b/src/all/madara/build.gradle index b80ceb7b7..80e59f045 100644 --- a/src/all/madara/build.gradle +++ b/src/all/madara/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Madara (multiple sources)' pkgNameSuffix = "all.madara" extClass = '.MadaraFactory' - extVersionCode = 63 + extVersionCode = 64 libVersion = '1.2' } diff --git a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt index 942b2ad33..de8dc9210 100644 --- a/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt +++ b/src/all/madara/src/eu/kanade/tachiyomi/extension/all/madara/MadaraFactory.kt @@ -480,6 +480,18 @@ class ThreeSixtyFiveManga: Madara("365Manga","https://365manga.com","en") { class DisasterScans: Madara("Disaster Scans","https://disasterscans.com","en") { override val popularMangaUrlSelector = "div.post-title a:last-child" + + override fun mangaDetailsParse(document: Document): SManga { + val manga = super.mangaDetailsParse(document) + + with(document) { + select("div.post-title h1").first()?.let { + manga.title = it.ownText() + } + } + + return manga + } } class MangaKiss: Madara("MangaKiss", "https://mangakiss.org", "en", SimpleDateFormat("dd/MM/yyyy", Locale.US)) {