From 6a06a34326c814512f1e425164c2e9896566ad83 Mon Sep 17 00:00:00 2001 From: Chris Allan Date: Fri, 19 Oct 2018 03:30:06 -0700 Subject: [PATCH] webtoons: handle multiple genres (#565) webtoons: handle multiple genres --- src/en/webtoons/build.gradle | 4 ++-- .../src/eu/kanade/tachiyomi/extension/en/webtoons/Webtoons.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/en/webtoons/build.gradle b/src/en/webtoons/build.gradle index 6e866b64e..966fb0639 100644 --- a/src/en/webtoons/build.gradle +++ b/src/en/webtoons/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: Webtoons' pkgNameSuffix = 'en.webtoons' extClass = '.Webtoons' - extVersionCode = 4 - extVersionSuffix = 3 + extVersionCode = 5 + extVersionSuffix = 4 libVersion = '1.2' } diff --git a/src/en/webtoons/src/eu/kanade/tachiyomi/extension/en/webtoons/Webtoons.kt b/src/en/webtoons/src/eu/kanade/tachiyomi/extension/en/webtoons/Webtoons.kt index ff19cf31b..50ae6d9cf 100644 --- a/src/en/webtoons/src/eu/kanade/tachiyomi/extension/en/webtoons/Webtoons.kt +++ b/src/en/webtoons/src/eu/kanade/tachiyomi/extension/en/webtoons/Webtoons.kt @@ -122,7 +122,7 @@ class Webtoons : ParsedHttpSource() { val manga = SManga.create() manga.author = detailElement.select(".author:nth-of-type(1)").text().substringBefore("author info") manga.artist = detailElement.select(".author:nth-of-type(2)").first()?.text()?.substringBefore("author info") ?: manga.author - manga.genre = detailElement.select(".genre").text() + manga.genre = detailElement.select(".genre").map { it.text() }.joinToString(", ") manga.description = infoElement.select("p.summary").text() manga.status = infoElement.select("p.day_info").text().orEmpty().let { parseStatus(it) } manga.thumbnail_url = discoverPic.select("img").not("[alt=Representative image").first()?.attr("src") ?: picElement.attr("style")?.substringAfter("url(")?.substringBeforeLast(")")