From 0253ff35132b43e1eaafe404f1e131ae62648e4a Mon Sep 17 00:00:00 2001 From: stevenyomi <95685115+stevenyomi@users.noreply.github.com> Date: Wed, 22 Jun 2022 17:41:42 +0800 Subject: [PATCH] Bato.to: fix author and artist parsing (#12271) --- src/all/batoto/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/all/batoto/build.gradle b/src/all/batoto/build.gradle index e4ca51985..0ceb08386 100644 --- a/src/all/batoto/build.gradle +++ b/src/all/batoto/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Bato.to' pkgNameSuffix = 'all.batoto' extClass = '.BatoToFactory' - extVersionCode = 25 + extVersionCode = 26 isNsfw = true } diff --git a/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt b/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt index deb5b28cc..29c074714 100644 --- a/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt +++ b/src/all/batoto/src/eu/kanade/tachiyomi/extension/all/batoto/BatoTo.kt @@ -326,8 +326,8 @@ open class BatoTo( val workStatus = infoElement.select("div.attr-item:contains(original work) span").text() val uploadStatus = infoElement.select("div.attr-item:contains(upload status) span").text() manga.title = infoElement.select("h3").text().removeEntities() - manga.author = infoElement.select("div.attr-item:contains(author) a:first-child").text() - manga.artist = infoElement.select("div.attr-item:contains(artist) a:last-child").text() + manga.author = infoElement.select("div.attr-item:contains(author) span").text() + manga.artist = infoElement.select("div.attr-item:contains(artist) span").text() manga.status = parseStatus(workStatus, uploadStatus) manga.genre = infoElement.select(".attr-item b:contains(genres) + span ").joinToString { it.text() } manga.description = infoElement.select("div.limit-html").text() + "\n" + infoElement.select(".episode-list > .alert-warning").text().trim()