diff --git a/src/en/mangahub/build.gradle b/src/en/mangahub/build.gradle index 1bed04b7e..a1eb4ff58 100644 --- a/src/en/mangahub/build.gradle +++ b/src/en/mangahub/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Mangahub' pkgNameSuffix = 'en.mangahub' extClass = '.Mangahub' - extVersionCode = 7 + extVersionCode = 8 libVersion = '1.2' } diff --git a/src/en/mangahub/src/eu/kanade/tachiyomi/extension/en/mangahub/Mangahub.kt b/src/en/mangahub/src/eu/kanade/tachiyomi/extension/en/mangahub/Mangahub.kt index afbc671ac..b8b7d97b4 100644 --- a/src/en/mangahub/src/eu/kanade/tachiyomi/extension/en/mangahub/Mangahub.kt +++ b/src/en/mangahub/src/eu/kanade/tachiyomi/extension/en/mangahub/Mangahub.kt @@ -88,6 +88,16 @@ class Mangahub : ParsedHttpSource() { } } + // add alternative name to manga description + document.select("h1 small").firstOrNull()?.ownText()?.let { + if (it.isEmpty().not()) { + manga.description += when { + manga.description!!.isEmpty() -> "Alternative Name: $it" + else -> "\n\nAlternative Name: $it" + } + } + } + return manga }