MangaOwl update (#4957)

MangaOwl update
This commit is contained in:
Riztard Lanthorn 2020-11-26 22:28:14 +07:00 committed by GitHub
parent 05b78d88cb
commit 04b78ae199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaOwl' extName = 'MangaOwl'
pkgNameSuffix = 'en.mangaowl' pkgNameSuffix = 'en.mangaowl'
extClass = '.MangaOwl' extClass = '.MangaOwl'
extVersionCode = 7 extVersionCode = 8
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -19,7 +19,7 @@ class MangaOwl : ParsedHttpSource() {
override val name = "MangaOwl" override val name = "MangaOwl"
override val baseUrl = "https://mangaowl.com" override val baseUrl = "https://mangaowls.com"
override val lang = "en" override val lang = "en"
@ -83,11 +83,11 @@ class MangaOwl : ParsedHttpSource() {
return SManga.create().apply { return SManga.create().apply {
title = infoElement.select("h2").first().ownText() title = infoElement.select("h2").first().ownText()
author = infoElement.select("p:contains(author) a").text() author = infoElement.select("p.fexi_header_para a.author_link").text()
artist = author artist = author
status = parseStatus(infoElement.select("p:contains(pub. status)").first().ownText()) status = parseStatus(infoElement.select("p.fexi_header_para:contains(status)").first().ownText())
genre = infoElement.select("a.label").mapNotNull { it.text() }.joinToString(", ") genre = infoElement.select(".owl-tags a").joinToString { it.text() }
description = infoElement.select("div.single-right-grids.description").first().ownText() description = infoElement.select(".description").first().ownText()
thumbnail_url = infoElement.select("img").first()?.let { img -> thumbnail_url = infoElement.select("img").first()?.let { img ->
if (img.hasAttr("data-src")) img.attr("abs:data-src") else img.attr("abs:src") if (img.hasAttr("data-src")) img.attr("abs:data-src") else img.attr("abs:src")
} }