From b495e6013a7e7a768c4520cfff831385732cd50c Mon Sep 17 00:00:00 2001 From: OncePunchedMan <64155117+OncePunchedMan@users.noreply.github.com> Date: Thu, 8 Jul 2021 16:47:57 +0200 Subject: [PATCH] fix status and titles (#8016) --- src/en/mangafreak/build.gradle | 2 +- .../tachiyomi/extension/en/mangafreak/Mangafreak.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/en/mangafreak/build.gradle b/src/en/mangafreak/build.gradle index 20f475ad3..93f793eb0 100644 --- a/src/en/mangafreak/build.gradle +++ b/src/en/mangafreak/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Mangafreak' pkgNameSuffix = 'en.mangafreak' extClass = '.Mangafreak' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/en/mangafreak/src/eu/kanade/tachiyomi/extension/en/mangafreak/Mangafreak.kt b/src/en/mangafreak/src/eu/kanade/tachiyomi/extension/en/mangafreak/Mangafreak.kt index 4cbec0d1d..1542b6133 100644 --- a/src/en/mangafreak/src/eu/kanade/tachiyomi/extension/en/mangafreak/Mangafreak.kt +++ b/src/en/mangafreak/src/eu/kanade/tachiyomi/extension/en/mangafreak/Mangafreak.kt @@ -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() }