mirror of
https://github.com/gotson/komga.git
synced 2025-12-15 21:12:27 +01:00
fix(komga): add field alias for Mylar series.json
existing ComicImage will be renamed to comic_image in the future, this prepares for it
This commit is contained in:
parent
9d1b82a423
commit
bc5a73a9ed
2 changed files with 3 additions and 2 deletions
|
|
@ -22,7 +22,8 @@ data class MylarMetadata(
|
|||
val bookType: String,
|
||||
@field:JsonProperty("age_rating")
|
||||
val ageRating: AgeRating?,
|
||||
@field:JsonProperty("ComicImage")
|
||||
@field:JsonProperty("comic_image")
|
||||
@field:JsonAlias("ComicImage")
|
||||
val comicImage: String,
|
||||
@field:JsonProperty("total_issues")
|
||||
val totalIssues: Int,
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ class SeriesTest(
|
|||
"booktype": "Print",
|
||||
"age_rating": null,
|
||||
"collects": null,
|
||||
"ComicImage": "https://comicvine1.cbsistatic.com/uploads/scale_large/6/67663/6974029-01a.jpg",
|
||||
"comic_image": "https://comicvine1.cbsistatic.com/uploads/scale_large/6/67663/6974029-01a.jpg",
|
||||
"total_issues": 20,
|
||||
"publication_run": "June 2019 - Present",
|
||||
"status": "Ended"
|
||||
|
|
|
|||
Loading…
Reference in a new issue