Revert "mark OPDS mediaType as application/octet-stream unless it's a pdf file (should fix some OPDS clients not seeing archives)"

This doesn't solve issues on OPDS readers :(

This reverts commit 2c642fdd
This commit is contained in:
Gauthier Roebroeck 2019-10-13 17:10:38 +08:00
parent 2c642fddac
commit 4cfb61f785

View file

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