mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 19:34:35 -05:00
feat(comicinfo): add date fields to comic info (#1021)
* feat(comicinfo): add date fields to comic info This will be parsed by Komga, Kavita etc ... and any other library management to also have the date of the chapter. * refactor: improve code readability Co-authored-by: Mitchell Syer <Syer10@users.noreply.github.com> --------- Co-authored-by: Mitchell Syer <Syer10@users.noreply.github.com>
This commit is contained in:
@@ -58,6 +58,9 @@ data class ComicInfo(
|
||||
val web: Web?,
|
||||
val publishingStatus: PublishingStatusTachiyomi?,
|
||||
val categories: CategoriesTachiyomi?,
|
||||
val day: Day?,
|
||||
val month: Month?,
|
||||
val year: Year?,
|
||||
) {
|
||||
@Suppress("UNUSED")
|
||||
@XmlElement(false)
|
||||
@@ -87,6 +90,24 @@ data class ComicInfo(
|
||||
@XmlValue(true) val value: String = "",
|
||||
)
|
||||
|
||||
@Serializable
|
||||
@XmlSerialName("Day", "", "")
|
||||
data class Day(
|
||||
@XmlValue(true) val value: Int = 0,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
@XmlSerialName("Month", "", "")
|
||||
data class Month(
|
||||
@XmlValue(true) val value: Int = 0,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
@XmlSerialName("Year", "", "")
|
||||
data class Year(
|
||||
@XmlValue(true) val value: Int = 0,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
@XmlSerialName("Summary", "", "")
|
||||
data class Summary(
|
||||
|
||||
Reference in New Issue
Block a user