mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02:00
parent
8ff6c8620e
commit
fe2b756c2f
2 changed files with 4 additions and 1 deletions
|
|
@ -0,0 +1,2 @@
|
||||||
|
update SERIES_METADATA
|
||||||
|
set language = lower(language);
|
||||||
|
|
@ -10,7 +10,7 @@ class SeriesMetadata(
|
||||||
val readingDirection: ReadingDirection? = null,
|
val readingDirection: ReadingDirection? = null,
|
||||||
publisher: String = "",
|
publisher: String = "",
|
||||||
val ageRating: Int? = null,
|
val ageRating: Int? = null,
|
||||||
val language: String = "",
|
language: String = "",
|
||||||
genres: Set<String> = emptySet(),
|
genres: Set<String> = emptySet(),
|
||||||
tags: Set<String> = emptySet(),
|
tags: Set<String> = emptySet(),
|
||||||
val totalBookCount: Int? = null,
|
val totalBookCount: Int? = null,
|
||||||
|
|
@ -36,6 +36,7 @@ class SeriesMetadata(
|
||||||
val titleSort = titleSort.trim()
|
val titleSort = titleSort.trim()
|
||||||
val summary = summary.trim()
|
val summary = summary.trim()
|
||||||
val publisher = publisher.trim()
|
val publisher = publisher.trim()
|
||||||
|
val language = language.trim().lowercase()
|
||||||
val tags = tags.map { it.lowercase().trim() }.filter { it.isNotBlank() }.toSet()
|
val tags = tags.map { it.lowercase().trim() }.filter { it.isNotBlank() }.toSet()
|
||||||
val genres = genres.map { it.lowercase().trim() }.filter { it.isNotBlank() }.toSet()
|
val genres = genres.map { it.lowercase().trim() }.filter { it.isNotBlank() }.toSet()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue