Edit Manga Status (for Local and online

Mostly the same, except custom status can be null so it's not automatically added to the edits.json

Since SY implemented first I'm using the same key for backups, I would've liked if customStatus was nullable but it is what it is

Closes #704

Co-Authored-By: jobobby04 <17078382+jobobby04@users.noreply.github.com>
This commit is contained in:
Jays2Kings 2021-04-14 16:18:58 -04:00
parent 928fc06e58
commit 9e3aaab95f
12 changed files with 61 additions and 18 deletions

View file

@ -200,7 +200,7 @@ class LocalSource(private val context: Context) : CatalogueSource {
}
fun SManga.toJson(): MangaJson {
return MangaJson(title, author, artist, description, genre?.split(", ")?.toTypedArray())
return MangaJson(title, author, artist, description, genre?.split(", ")?.toTypedArray(), status)
}
data class MangaJson(
@ -208,7 +208,8 @@ class LocalSource(private val context: Context) : CatalogueSource {
val author: String?,
val artist: String?,
val description: String?,
val genre: Array<String>?
val genre: Array<String>?,
val status: Int?,
) {
override fun equals(other: Any?): Boolean {