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:
Gauthier Roebroeck 2024-01-23 14:21:25 +08:00
parent 9d1b82a423
commit bc5a73a9ed
2 changed files with 3 additions and 2 deletions

View file

@ -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,

View file

@ -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"