Add missing status in MM. (#8637)

This commit is contained in:
Alessandro Jean 2021-08-18 15:17:19 -03:00 committed by GitHub
parent 684eea5469
commit 2d976eb7f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Muito Mangá'
pkgNameSuffix = 'pt.muitomanga'
extClass = '.MuitoManga'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
containsNsfw = true
}

View File

@ -116,11 +116,13 @@ class MuitoManga : ParsedHttpSource() {
override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply {
val infoElement = document.select("div.content_post").first()!!
val isFinished = infoElement.select("span.series_autor2 > span.series_autor").firstOrNull()
title = document.select("div.content div.widget-title h1").first()!!.text()
author = infoElement.select("span.series_autor2").first()!!.text()
author = infoElement.select("span.series_autor2").first()!!.ownText()
genre = infoElement.select("ul.lancamento-list a").joinToString { it.text() }
description = document.select("ul.lancamento-list ~ p").text().trim()
status = if (isFinished != null) SManga.COMPLETED else SManga.ONGOING
thumbnail_url = infoElement.select("div.capaMangaInfo img").first()!!.attr("data-src")
}