diff --git a/src/all/yaoimangaonline/build.gradle b/src/all/yaoimangaonline/build.gradle index 7d9a0215bb..afb08648a2 100644 --- a/src/all/yaoimangaonline/build.gradle +++ b/src/all/yaoimangaonline/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Yaoi Manga Online' extClass = '.YaoiMangaOnline' - extVersionCode = 3 + extVersionCode = 4 isNsfw = true } diff --git a/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt b/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt index fa8e0276e2..f95441e0aa 100644 --- a/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt +++ b/src/all/yaoimangaonline/src/eu/kanade/tachiyomi/extension/all/yaoimangaonline/YaoiMangaOnline.kt @@ -73,10 +73,22 @@ class YaoiMangaOnline : ParsedHttpSource() { override fun mangaDetailsParse(document: Document) = SManga.create().apply { title = document.select("h1.entry-title").text() + title = title.substringBeforeLast("by").trim() thumbnail_url = document .selectFirst(".herald-post-thumbnail img")?.attr("src") - description = document.select(".entry-content > p").text() + description = document.select(".entry-content > p:not(:has(img)):not(:contains(You need to login))") + .let { elements -> + elements.joinToString("\n\n") { + it.wholeText().replace("
", "").split("\n").joinToString("\n") { line -> + line.trim() + } + } + } genre = document.select(".meta-tags > a").joinToString { it.text() } + author = document.select(".entry-content > p:contains(Mangaka:)").text() + .substringAfter("Mangaka:") + .substringBefore("Language:") + .trim() } override fun chapterListSelector() = ".mpp-toc a"