Mangareader - fix genre tags (#3889)

This commit is contained in:
Mike 2020-07-25 05:56:32 -04:00 committed by GitHub
parent 31e72707bb
commit 9590c3bac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Mangareader & Mangapanda' extName = 'Mangareader & Mangapanda'
pkgNameSuffix = 'en.mangareader' pkgNameSuffix = 'en.mangareader'
extClass = '.MRPFactory' extClass = '.MRPFactory'
extVersionCode = 4 extVersionCode = 5
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -124,7 +124,7 @@ abstract class MRP(
manga.artist = infoElement.select("td.propertytitle:containsOwn(artist) + td").text() manga.artist = infoElement.select("td.propertytitle:containsOwn(artist) + td").text()
val status = infoElement.select("td.propertytitle:containsOwn(status) + td").text() val status = infoElement.select("td.propertytitle:containsOwn(status) + td").text()
manga.status = parseStatus(status) 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.description = document.select("div#readmangasum p").text()
manga.thumbnail_url = document.select("img").attr("src") manga.thumbnail_url = document.select("img").attr("src")
return manga return manga
@ -155,7 +155,7 @@ abstract class MRP(
} }
private fun parseDate(date: String): Long { 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<Page> { override fun pageListParse(document: Document): List<Page> {