Sort and remove duplicates in genres (#6021)
* Sort and remove duplicates in genres Co-authored-by: ivaniskandar <12537387+ivaniskandar@users.noreply.github.com> * Remove Sort and filter out blank genre Co-authored-by: ivaniskandar <12537387+ivaniskandar@users.noreply.github.com> (cherry picked from commit 7940117577ce500816a61bc638455ffc2ff47017)
This commit is contained in:
parent
17fee7fba2
commit
e1856e67c2
@ -38,7 +38,9 @@ interface Manga : SManga {
|
||||
}
|
||||
|
||||
fun getGenres(): List<String>? {
|
||||
return genre?.split(", ")?.map { it.trim() }
|
||||
if (genre.isNullOrBlank()) return null
|
||||
return genre?.split(", ")?.map { it.trim() } ?.filterNot { it.isBlank() } ?.distinct()
|
||||
|
||||
}
|
||||
|
||||
// SY -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user