From a413029a76118367d8d491290ccaf307f42534e4 Mon Sep 17 00:00:00 2001 From: Rama Bondan Prakoso Date: Thu, 18 Jul 2019 16:32:53 +0700 Subject: [PATCH] Komikcast: Fix description parsing issue (#1310) some manga have unknown description Signed-off-by: Rama Bondan Prakoso --- src/id/komikcast/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/id/komikcast/Komikcast.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/id/komikcast/build.gradle b/src/id/komikcast/build.gradle index ee7529f9a..78b3c2718 100644 --- a/src/id/komikcast/build.gradle +++ b/src/id/komikcast/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Komikcast' pkgNameSuffix = 'id.komikcast' extClass = '.Komikcast' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/id/komikcast/src/eu/kanade/tachiyomi/extension/id/komikcast/Komikcast.kt b/src/id/komikcast/src/eu/kanade/tachiyomi/extension/id/komikcast/Komikcast.kt index 3037af135..58f26eeed 100644 --- a/src/id/komikcast/src/eu/kanade/tachiyomi/extension/id/komikcast/Komikcast.kt +++ b/src/id/komikcast/src/eu/kanade/tachiyomi/extension/id/komikcast/Komikcast.kt @@ -99,7 +99,7 @@ class Komikcast : ParsedHttpSource() { } manga.genre = genres.joinToString(", ") 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") return manga