diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/KoboController.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/KoboController.kt index 0bab75c8cd..61c88a5822 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/KoboController.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/KoboController.kt @@ -36,6 +36,7 @@ import org.gotson.komga.interfaces.api.kobo.dto.AuthDto import org.gotson.komga.interfaces.api.kobo.dto.BookEntitlementContainerDto import org.gotson.komga.interfaces.api.kobo.dto.BookmarkDto import org.gotson.komga.interfaces.api.kobo.dto.ChangedEntitlementDto +import org.gotson.komga.interfaces.api.kobo.dto.ChangedProductMetadataDto import org.gotson.komga.interfaces.api.kobo.dto.ChangedReadingStateDto import org.gotson.komga.interfaces.api.kobo.dto.KoboBookMetadataDto import org.gotson.komga.interfaces.api.kobo.dto.NewEntitlementDto @@ -282,7 +283,7 @@ class KoboController( ) addAll( booksChanged.content.map { - ChangedEntitlementDto( + NewEntitlementDto( BookEntitlementContainerDto( bookEntitlement = it.toBookEntitlementDto(false), bookMetadata = metadata[it.bookId]!!, @@ -291,6 +292,11 @@ class KoboController( ) }, ) + addAll( + booksChanged.content.map { + ChangedProductMetadataDto(metadata[it.bookId]!!) + }, + ) addAll( booksRemoved.content.map { ChangedEntitlementDto( diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/dto/SyncResultDto.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/dto/SyncResultDto.kt index 26ff013133..2b8c313303 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/dto/SyncResultDto.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/kobo/dto/SyncResultDto.kt @@ -15,6 +15,11 @@ data class ChangedEntitlementDto( val changedEntitlement: BookEntitlementContainerDto, ) : SyncResultDto +@JsonNaming(PropertyNamingStrategies.UpperCamelCaseStrategy::class) +data class ChangedProductMetadataDto( + val changedProductMetadata: KoboBookMetadataDto, +) : SyncResultDto + @JsonNaming(PropertyNamingStrategies.UpperCamelCaseStrategy::class) data class NewTagDto( val newTag: TagDto,