Mangareader - fix genre tags (#3889)
This commit is contained in:
parent
31e72707bb
commit
9590c3bac6
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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> {
|
||||||
|
|
Loading…
Reference in New Issue