fix epub reader playback and trial navigation
This commit is contained in:
@@ -50,12 +50,14 @@ extension RDEPUBReaderController {
|
||||
items.flatMap { item in
|
||||
let location = RDEPUBLocation(bookIdentifier: currentBookIdentifier, href: item.href, progression: 0)
|
||||
let pageNumber = includePageNumbers ? resolvedTableOfContentsPageNumber(for: location) : nil
|
||||
let isReadable = isReadableTableOfContentsLocation(location)
|
||||
|
||||
let current = RDEPUBReaderTableOfContentsItem(
|
||||
title: item.title,
|
||||
href: item.href,
|
||||
depth: depth,
|
||||
pageNumber: pageNumber
|
||||
pageNumber: pageNumber,
|
||||
isReadable: isReadable
|
||||
)
|
||||
return [current] + flattenedTableOfContentsItems(
|
||||
from: item.children,
|
||||
|
||||
Reference in New Issue
Block a user