mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
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:
parent
928fc06e58
commit
9e3aaab95f
12 changed files with 61 additions and 18 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue