mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-01 08:34:33 +02:00
Add:iOS offline ebooks
This commit is contained in:
parent
8b39ba9c92
commit
147f89f870
13 changed files with 157 additions and 26 deletions
|
@ -130,6 +130,12 @@ extension LocalLibraryItem {
|
|||
for i in fromMedia.tracks.indices {
|
||||
_ = fromMedia.tracks[i].setLocalInfo(filenameIdMap: fileIdByFilename, serverIndex: i)
|
||||
}
|
||||
if fromMedia.ebookFile != nil {
|
||||
let ebookLocalFile = files.first(where: { $0.filename == fromMedia.ebookFile?.metadata?.filename ?? "" })
|
||||
if ebookLocalFile != nil {
|
||||
_ = fromMedia.ebookFile?.setLocalInfo(localFile: ebookLocalFile!)
|
||||
}
|
||||
}
|
||||
} else if ( self.isPodcast ) {
|
||||
let episodes = List<PodcastEpisode>()
|
||||
for episode in fromMedia.episodes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue