fix status and titles (#8016)

This commit is contained in:
OncePunchedMan 2021-07-08 16:47:57 +02:00 committed by GitHub
parent 8dc35e3a92
commit b495e6013a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Mangafreak'
pkgNameSuffix = 'en.mangafreak'
extClass = '.Mangafreak'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -59,7 +59,7 @@ class Mangafreak : ParsedHttpSource() {
override fun latestUpdatesFromElement(element: Element): SManga = SManga.create().apply {
thumbnail_url = element.select("img").attr("abs:src").replace("mini", "manga").substringBeforeLast("/") + ".jpg"
element.select("a").apply {
title = text()
title = first().text()
url = attr("href")
}
}
@ -101,13 +101,13 @@ class Mangafreak : ParsedHttpSource() {
override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply {
thumbnail_url = document.select("div.manga_series_image img").attr("abs:src")
title = document.select("div.manga_series_data h5").text()
status = when (document.select("div.manga_series_data > div:eq(3)").text()) {
status = when (document.select("div.manga_series_data > div:eq(2)").text()) {
"ON-GOING" -> SManga.ONGOING
"COMPLETED" -> SManga.COMPLETED
else -> SManga.UNKNOWN
}
author = document.select("div.manga_series_data > div:eq(4)").text()
artist = document.select("div.manga_series_data > div:eq(5)").text()
author = document.select("div.manga_series_data > div:eq(3)").text()
artist = document.select("div.manga_series_data > div:eq(4)").text()
genre = document.select("div.series_sub_genre_list a").joinToString { it.text() }
description = document.select("div.manga_series_description p").text()
}