mangabox: fix alt titles included in title (#1964)

* mangabox: fix alt titles included in title 

fix applies to tachiEH and other forks with updated deps.
I tested it dw.

* Update build.gradle
This commit is contained in:
az4521 2020-01-03 18:37:37 -05:00 committed by arkon
parent 60c8d35bd7
commit d553b51988
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: MangaBox (Mangakakalot and others)'
pkgNameSuffix = 'all.mangabox'
extClass = '.MangaBoxFactory'
extVersionCode = 7
extVersionCode = 8
libVersion = '1.2'
}

View File

@ -115,7 +115,7 @@ abstract class MangaBox (
val infoElement = document.select(mangaDetailsMainSelector)
return SManga.create().apply {
title = infoElement.select("h1, h2").text()
title = infoElement.select("h1, h2").first().text()
author = infoElement.select("li:contains(author) a, td:containsOwn(author) + td").text()
status = parseStatus(infoElement.select("li:contains(status), td:containsOwn(status) + td").text())
genre = infoElement.select("div.manga-info-top li:contains(genres)").let { kakalotE ->