From 88b43ddb4699d958454134058ba7fd0cf9afeaeb Mon Sep 17 00:00:00 2001 From: Carlos Date: Fri, 26 Jan 2018 11:09:33 -0500 Subject: [PATCH] fix genre tags to be delimited correctly (#176) --- src/en/readmangatoday/build.gradle | 4 ++-- .../extension/en/readmangatoday/Readmangatoday.kt | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/en/readmangatoday/build.gradle b/src/en/readmangatoday/build.gradle index fa92fcff0..496b308b6 100644 --- a/src/en/readmangatoday/build.gradle +++ b/src/en/readmangatoday/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: ReadMangaToday' pkgNameSuffix = "en.readmangatoday" extClass = '.Readmangatoday' - extVersionCode = 4 - extVersionSuffix = 1 + extVersionCode = 5 + extVersionSuffix = 2 libVersion = '1.2' } diff --git a/src/en/readmangatoday/src/eu/kanade/tachiyomi/extension/en/readmangatoday/Readmangatoday.kt b/src/en/readmangatoday/src/eu/kanade/tachiyomi/extension/en/readmangatoday/Readmangatoday.kt index a4f606a8d..52456a60a 100644 --- a/src/en/readmangatoday/src/eu/kanade/tachiyomi/extension/en/readmangatoday/Readmangatoday.kt +++ b/src/en/readmangatoday/src/eu/kanade/tachiyomi/extension/en/readmangatoday/Readmangatoday.kt @@ -96,14 +96,19 @@ class Readmangatoday : ParsedHttpSource() { override fun mangaDetailsParse(document: Document): SManga { val detailElement = document.select("div.movie-meta").first() + val genreElement = detailElement.select("dl.dl-horizontal > dd:eq(5) a") val manga = SManga.create() manga.author = document.select("ul.cast-list li.director > ul a").first()?.text() manga.artist = document.select("ul.cast-list li:not(.director) > ul a").first()?.text() - manga.genre = detailElement.select("dl.dl-horizontal > dd:eq(5)").first()?.text() manga.description = detailElement.select("li.movie-detail").first()?.text() manga.status = detailElement.select("dl.dl-horizontal > dd:eq(3)").first()?.text().orEmpty().let { parseStatus(it) } manga.thumbnail_url = detailElement.select("img.img-responsive").first()?.attr("src") + + var genres = mutableListOf() + genreElement?.forEach { genres.add(it.text()) } + manga.genre = genres.joinToString(", ") + return manga }