mirror of
https://github.com/gotson/komga.git
synced 2026-04-29 18:31:55 +02:00
parent
3e11e901a3
commit
e08cea8549
1 changed files with 2 additions and 1 deletions
|
|
@ -162,7 +162,8 @@ class EpubExtractor(
|
|||
}
|
||||
|
||||
private fun isFixedLayout(epub: EpubPackage) =
|
||||
epub.opfDoc.selectFirst("metadata > *|meta[property=rendition:layout]")?.text()?.ifBlank { null } == "pre-paginated"
|
||||
epub.opfDoc.selectFirst("metadata > *|meta[property=rendition:layout]")?.text() == "pre-paginated" ||
|
||||
epub.opfDoc.selectFirst("metadata > *|meta[name=fixed-layout]")?.attr("content") == "true"
|
||||
|
||||
private fun computePositions(resources: List<MediaFile>, isFixedLayout: Boolean): List<R2Locator> {
|
||||
val readingOrder = resources.filter { it.subType == MediaFile.SubType.EPUB_PAGE }
|
||||
|
|
|
|||
Loading…
Reference in a new issue