mirror of
https://github.com/gotson/komga.git
synced 2026-04-18 21:13:24 +02:00
fix: handle both cid and comicId for Mylar's series.json
Closes: #890 Closes: #889
This commit is contained in:
parent
6581ffd4cd
commit
0bbe5438d0
2 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
package org.gotson.komga.infrastructure.metadata.mylar.dto
|
package org.gotson.komga.infrastructure.metadata.mylar.dto
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAlias
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty
|
import com.fasterxml.jackson.annotation.JsonProperty
|
||||||
|
|
||||||
|
|
@ -13,7 +14,7 @@ data class MylarMetadata(
|
||||||
|
|
||||||
val name: String,
|
val name: String,
|
||||||
|
|
||||||
@field:JsonProperty("cid")
|
@field:JsonAlias("cid")
|
||||||
val comicId: String,
|
val comicId: String,
|
||||||
|
|
||||||
val year: Int,
|
val year: Int,
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
"publisher": "IDW Publishing",
|
"publisher": "IDW Publishing",
|
||||||
"imprint": null,
|
"imprint": null,
|
||||||
"name": "Usagi Yojimbo",
|
"name": "Usagi Yojimbo",
|
||||||
"cid": 119731,
|
"comicId": 119731,
|
||||||
"year": 2019,
|
"year": 2019,
|
||||||
"description_text": null,
|
"description_text": null,
|
||||||
"description_formatted": null,
|
"description_formatted": null,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue