diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/web/opds/dto/OpdsLink.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/web/opds/dto/OpdsLink.kt index 8835ff6ba..af2830dee 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/web/opds/dto/OpdsLink.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/web/opds/dto/OpdsLink.kt @@ -44,7 +44,7 @@ class OpdsLinkImageThumbnail(mediaType: String, href: String) : OpdsLink( @JsonSerialize(`as` = OpdsLink::class) class OpdsLinkFileAcquisition(mediaType: String?, href: String) : OpdsLink( - type = if (mediaType == "application/pdf") mediaType else "application/octet-stream", + type = mediaType ?: "application/octet-stream", rel = "http://opds-spec.org/acquisition", href = href )