mirror of
https://github.com/gotson/komga.git
synced 2026-05-09 05:10:19 +02:00
feat(opds-v1): add OPDS-PSE links for divina-compatible EPUBs
This commit is contained in:
parent
0274308bd1
commit
0c960545cb
1 changed files with 2 additions and 1 deletions
|
|
@ -689,7 +689,8 @@ class OpdsController(
|
|||
val mediaTypes = when (media.profile) {
|
||||
MediaProfile.DIVINA -> media.pages.map { it.mediaType }.distinct()
|
||||
MediaProfile.PDF -> listOf(pdfImageType.mediaType)
|
||||
MediaProfile.EPUB, null -> emptyList()
|
||||
MediaProfile.EPUB -> if (media.epubDivinaCompatible) media.pages.map { it.mediaType }.distinct() else emptyList()
|
||||
null -> emptyList()
|
||||
}
|
||||
|
||||
val opdsLinkPageStreaming =
|
||||
|
|
|
|||
Loading…
Reference in a new issue