Use "No Group" properly in mangadex
This commit is contained in:
parent
c29dc695ae
commit
9ddadae078
@ -252,9 +252,18 @@ class ApiMangaParser(
|
||||
// Convert from unix time
|
||||
val dateUpload = MdUtil.parseDate(attributes.publishAt)
|
||||
|
||||
val scanlatorName = networkChapter.relationships.filter {
|
||||
val scanlatorName = networkChapter.relationships
|
||||
.filter {
|
||||
it.type == MdConstants.Types.scanlator
|
||||
}.mapNotNull { groups[it.id] }.toSet()
|
||||
}
|
||||
.mapNotNull { groups[it.id] }
|
||||
.map {
|
||||
if (it == "no group") {
|
||||
"No Group"
|
||||
} else it
|
||||
}
|
||||
.toSet()
|
||||
.ifEmpty { setOf("No Group") }
|
||||
|
||||
val scanlator = MdUtil.cleanString(MdUtil.getScanlatorString(scanlatorName))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user