mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
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:
parent
2c642fddac
commit
4cfb61f785
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue