From 9590c3bac61caf910a0f1ee21162b82e1b966840 Mon Sep 17 00:00:00 2001 From: Mike <51273546+SnakeDoc83@users.noreply.github.com> Date: Sat, 25 Jul 2020 05:56:32 -0400 Subject: [PATCH] Mangareader - fix genre tags (#3889) --- src/en/mangareader/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/en/mangareader/MRP.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/en/mangareader/build.gradle b/src/en/mangareader/build.gradle index 930219a8e..fbe8c33c7 100644 --- a/src/en/mangareader/build.gradle +++ b/src/en/mangareader/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Mangareader & Mangapanda' pkgNameSuffix = 'en.mangareader' extClass = '.MRPFactory' - extVersionCode = 4 + extVersionCode = 5 libVersion = '1.2' } diff --git a/src/en/mangareader/src/eu/kanade/tachiyomi/extension/en/mangareader/MRP.kt b/src/en/mangareader/src/eu/kanade/tachiyomi/extension/en/mangareader/MRP.kt index f4a8421b6..93d30c765 100644 --- a/src/en/mangareader/src/eu/kanade/tachiyomi/extension/en/mangareader/MRP.kt +++ b/src/en/mangareader/src/eu/kanade/tachiyomi/extension/en/mangareader/MRP.kt @@ -124,7 +124,7 @@ abstract class MRP( manga.artist = infoElement.select("td.propertytitle:containsOwn(artist) + td").text() val status = infoElement.select("td.propertytitle:containsOwn(status) + td").text() manga.status = parseStatus(status) - manga.genre = infoElement.select("td.propertytitle:containsOwn(genre) + td").text() + manga.genre = infoElement.select("td.propertytitle:containsOwn(genre) + td a").joinToString { it.text() } manga.description = document.select("div#readmangasum p").text() manga.thumbnail_url = document.select("img").attr("src") return manga @@ -155,7 +155,7 @@ abstract class MRP( } private fun parseDate(date: String): Long { - return SimpleDateFormat("MM/dd/yyyy", Locale.US).parse(date).time + return SimpleDateFormat("MM/dd/yyyy", Locale.US).parse(date)?.time ?: 0 } override fun pageListParse(document: Document): List {