From 26f633993dc06fb717b4fa6d87c76f177d119417 Mon Sep 17 00:00:00 2001 From: happywillow0 <45346080+happywillow0@users.noreply.github.com> Date: Fri, 7 Feb 2020 14:25:33 -0500 Subject: [PATCH] Update manga.description (#2210) MRM - Update Description --- src/all/myreadingmanga/build.gradle | 2 +- .../tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/all/myreadingmanga/build.gradle b/src/all/myreadingmanga/build.gradle index c95f4c81a..86a75e508 100644 --- a/src/all/myreadingmanga/build.gradle +++ b/src/all/myreadingmanga/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: MyReadingManga' pkgNameSuffix = 'all.myreadingmanga' extClass = '.MyReadingMangaFactory' - extVersionCode = 30 + extVersionCode = 31 libVersion = '1.2' } diff --git a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt index 60141c6c1..42d98dd8b 100644 --- a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt +++ b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt @@ -172,7 +172,8 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() { manga.artist = cleanAuthor(document.select("h1").text()) val glist = document.select(".entry-header p a[href*=genre]").map { it.text() } manga.genre = glist.joinToString(", ") - manga.description = document.select("h1").text() + "\n" + document.select(".info-class")?.text() + val extendedDescription = document.select(".entry-content p:not(p:containsOwn(|)):not(.chapter-class + p)")?.map { it.text() }?.joinToString("\n") + manga.description = document.select("h1").text() + if (extendedDescription.isNullOrEmpty()) "" else "\n\n$extendedDescription" manga.status = when (document.select("a[href*=status]")?.first()?.text()) { "Ongoing" -> SManga.ONGOING "Completed" -> SManga.COMPLETED