Add missing chapter scanlator in MM. (#8783)
This commit is contained in:
parent
7f232185fb
commit
42f6a32163
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Muito Mangá'
|
extName = 'Muito Mangá'
|
||||||
pkgNameSuffix = 'pt.muitomanga'
|
pkgNameSuffix = 'pt.muitomanga'
|
||||||
extClass = '.MuitoManga'
|
extClass = '.MuitoManga'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
containsNsfw = true
|
containsNsfw = true
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,7 +131,7 @@ class MuitoManga : ParsedHttpSource() {
|
||||||
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
|
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
|
||||||
name = element.select("a").first()!!.text()
|
name = element.select("a").first()!!.text()
|
||||||
date_upload = element.select("small[title]").first()!!.text().toDate()
|
date_upload = element.select("small[title]").first()!!.text().toDate()
|
||||||
scanlator = element.select("scanlator2 a").joinToString { it.text().trim() }
|
scanlator = element.select("div.scanlator2 a").joinToString { it.text().trim() }
|
||||||
setUrlWithoutDomain(element.select("a").first()!!.attr("abs:href"))
|
setUrlWithoutDomain(element.select("a").first()!!.attr("abs:href"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,11 +204,8 @@ class MuitoManga : ParsedHttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun String.toDate(): Long {
|
private fun String.toDate(): Long {
|
||||||
return try {
|
return runCatching { DATE_FORMATTER.parse(this)?.time }
|
||||||
DATE_FORMATTER.parse(this)?.time ?: 0L
|
.getOrNull() ?: 0L
|
||||||
} catch (e: ParseException) {
|
|
||||||
0L
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
Loading…
Reference in New Issue