Skip to content

Commit

Permalink
fix(komga): add field alias for Mylar series.json
Browse files Browse the repository at this point in the history
existing ComicImage will be renamed to comic_image in the future, this prepares for it
  • Loading branch information
gotson committed Jan 23, 2024
1 parent 9d1b82a commit bc5a73a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bc5a73a

Please sign in to comment.