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