Komikcast: Fix description parsing issue (#1310)

some manga have unknown description

Signed-off-by: Rama Bondan Prakoso <ramanarubp@gmail.com>
This commit is contained in:
Rama Bondan Prakoso 2019-07-18 16:32:53 +07:00 committed by Carlos
parent 66017dc432
commit a413029a76
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Komikcast' appName = 'Tachiyomi: Komikcast'
pkgNameSuffix = 'id.komikcast' pkgNameSuffix = 'id.komikcast'
extClass = '.Komikcast' extClass = '.Komikcast'
extVersionCode = 2 extVersionCode = 3
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -99,7 +99,7 @@ class Komikcast : ParsedHttpSource() {
} }
manga.genre = genres.joinToString(", ") manga.genre = genres.joinToString(", ")
manga.status = parseStatus(infoElement.select(".spe > span:nth-child(2)").text()) manga.status = parseStatus(infoElement.select(".spe > span:nth-child(2)").text())
manga.description = document.select("div.desc div p:nth-child(1)")?.text() manga.description = document.select("div[^itemprop]").last().text()
manga.thumbnail_url = document.select(".thumb > img:nth-child(1)").attr("src") manga.thumbnail_url = document.select(".thumb > img:nth-child(1)").attr("src")
return manga return manga