Trim Chapter scanlator value (#10108)

This commit is contained in:
AntsyLich 2023-11-05 22:06:20 +06:00 committed by GitHub
parent b97aa23548
commit d0bcd30909
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ fun Chapter.copyFromSChapter(sChapter: SChapter): Chapter {
url = sChapter.url,
dateUpload = sChapter.date_upload,
chapterNumber = sChapter.chapter_number.toDouble(),
scanlator = sChapter.scanlator?.ifBlank { null },
scanlator = sChapter.scanlator?.ifBlank { null }?.trim(),
)
}