diff --git a/src/all/junmeitu/build.gradle b/src/all/junmeitu/build.gradle index 836c6aaae..685905170 100644 --- a/src/all/junmeitu/build.gradle +++ b/src/all/junmeitu/build.gradle @@ -2,7 +2,7 @@ ext { extName = 'Junmeitu' pkgNameSuffix = 'all.junmeitu' extClass = '.Junmeitu' - extVersionCode = 5 + extVersionCode = 6 isNsfw = true } diff --git a/src/all/junmeitu/src/eu/kanade/tachiyomi/extension/all/junmeitu/Junmeitu.kt b/src/all/junmeitu/src/eu/kanade/tachiyomi/extension/all/junmeitu/Junmeitu.kt index 7a7af01a1..c832f817f 100644 --- a/src/all/junmeitu/src/eu/kanade/tachiyomi/extension/all/junmeitu/Junmeitu.kt +++ b/src/all/junmeitu/src/eu/kanade/tachiyomi/extension/all/junmeitu/Junmeitu.kt @@ -78,7 +78,8 @@ class Junmeitu : ParsedHttpSource() { override fun mangaDetailsParse(document: Document): SManga { val manga = SManga.create() manga.title = document.selectFirst(".news-title,.title")!!.text() - manga.description = document.select(".news-info,.picture-details").text() + "\n" + document.select(".introduce").text() + manga.description = "${document.select(".news-info, .picture-details") + .joinToString { it.text() }}\n" + document.select(".introduce").text() manga.genre = document.select(".relation_tags > a").joinToString { it.text() } manga.status = SManga.COMPLETED return manga @@ -86,20 +87,18 @@ class Junmeitu : ParsedHttpSource() { override fun chapterFromElement(element: Element): SChapter { val chapter = SChapter.create() - chapter.setUrlWithoutDomain(element.select(".position a:last-child").first()!!.attr("abs:href")) - chapter.chapter_number = -2f + chapter.setUrlWithoutDomain(element.select(".position a:last-child").attr("abs:href")) chapter.name = "Gallery" return chapter } - override fun chapterListSelector() = "html" + override fun chapterListSelector() = "div.position" // Pages override fun pageListParse(document: Document): List { val numPages = document.select(".pages > a:nth-last-of-type(2)").text().toIntOrNull() val newsBody = document.selectFirst(Evaluator.Class("news-body")) if (newsBody == null) { - val baseUrl = this.baseUrl val prefix = document.location().run { val index = lastIndexOf('.') // .html baseUrl + "/ajax_" + substring(baseUrl.length + 1, index) + '-'