Update Titles from the Source (#1115)

* Update Titles from the source

* Properly keep null fields
This commit is contained in:
Mitchell Syer
2024-11-14 18:08:31 -05:00
committed by GitHub
parent 0670f298cd
commit 9a51472726
2 changed files with 27 additions and 41 deletions

View File

@@ -25,34 +25,6 @@ interface SManga : Serializable {
var initialized: Boolean
fun copyFrom(other: SManga) {
if (other.author != null) {
author = other.author
}
if (other.artist != null) {
artist = other.artist
}
if (other.description != null) {
description = other.description
}
if (other.genre != null) {
genre = other.genre
}
if (other.thumbnail_url != null) {
thumbnail_url = other.thumbnail_url
}
status = other.status
if (!initialized) {
initialized = other.initialized
}
}
companion object {
const val UNKNOWN = 0
const val ONGOING = 1