parent
f8ca54dfcd
commit
9c0b1f252d
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: MangaOwl'
|
||||
pkgNameSuffix = 'en.mangaowl'
|
||||
extClass = '.MangaOwl'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -75,19 +75,19 @@ class MangaOwl : ParsedHttpSource() {
|
|||
// Manga summary page
|
||||
|
||||
override fun mangaDetailsParse(document: Document): SManga {
|
||||
val infoElement = document.select("div.col-sm-8").first()
|
||||
val infoElement = document.select("div.single_detail").first()
|
||||
|
||||
val manga = SManga.create()
|
||||
manga.title = infoElement.select("h2").first().ownText()
|
||||
manga.author = infoElement.select("p:contains(author) a").text()
|
||||
manga.artist = manga.author
|
||||
val status = infoElement.select("p:contains(pub. status)").first().ownText()
|
||||
manga.status = parseStatus(status)
|
||||
manga.genre = infoElement.select("a.label").mapNotNull{ it.text() }.joinToString(", ")
|
||||
manga.description = infoElement.select("div.single-right-grids.description").first().ownText()
|
||||
manga.thumbnail_url = infoElement.select("div.col-xs-offset-1 img").attr("abs:data-src")
|
||||
|
||||
return manga
|
||||
return SManga.create().apply {
|
||||
title = infoElement.select("h2").first().ownText()
|
||||
author = infoElement.select("p:contains(author) a").text()
|
||||
artist = author
|
||||
status = parseStatus(infoElement.select("p:contains(pub. status)").first().ownText())
|
||||
genre = infoElement.select("a.label").mapNotNull { it.text() }.joinToString(", ")
|
||||
description = infoElement.select("div.single-right-grids.description").first().ownText()
|
||||
thumbnail_url = infoElement.select("img").first()?.let { img ->
|
||||
if (img.hasAttr("data-src")) img.attr("abs:data-src") else img.attr("abs:src")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun parseStatus(status: String?) = when {
|
||||
|
@ -120,7 +120,7 @@ class MangaOwl : ParsedHttpSource() {
|
|||
}
|
||||
|
||||
private fun parseChapterDate(string: String): Long {
|
||||
return dateFormat.parse(string).time
|
||||
return dateFormat.parse(string).time
|
||||
}
|
||||
|
||||
// Pages
|
||||
|
|
Loading…
Reference in New Issue