webtoons: handle multiple genres (#565)

webtoons: handle multiple genres
This commit is contained in:
Chris Allan 2018-10-19 03:30:06 -07:00 committed by Carlos
parent b6c9398d8b
commit 6a06a34326
2 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: Webtoons'
pkgNameSuffix = 'en.webtoons'
extClass = '.Webtoons'
extVersionCode = 4
extVersionSuffix = 3
extVersionCode = 5
extVersionSuffix = 4
libVersion = '1.2'
}

View File

@ -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(")")