earlymanga add genre in manga details (#5378)

This commit is contained in:
Riztard Lanthorn 2021-01-12 01:18:52 +07:00 committed by GitHub
parent 1412a4f908
commit a5079a7242
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'EarlyManga'
pkgNameSuffix = 'en.earlymanga'
extClass = '.EarlyManga'
extVersionCode = 1
extVersionCode = 2
libVersion = '1.2'
}

View File

@ -76,6 +76,7 @@ class EarlyManga : ParsedHttpSource() {
artist = document.select(".artist-link a").text()
status = parseStatus(document.select(".pub_stutus").text())
description = document.select(".desc").text()
genre = document.select(".manga-info-card a.badge-secondary").joinToString { it.text() }
}
private fun parseStatus(status: String?) = when {