mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-20 18:54:38 +02:00
Working local file playback
This commit is contained in:
parent
65fcc45bc6
commit
9477860bca
6 changed files with 74 additions and 24 deletions
|
@ -90,6 +90,8 @@ struct Metadata: Realmable, Codable {
|
|||
var seriesName: String?
|
||||
var feedUrl: String?
|
||||
|
||||
var authorDisplayName: String { self.authorName ?? "Unknown" }
|
||||
|
||||
init() {
|
||||
title = "Unknown"
|
||||
genres = []
|
||||
|
@ -251,6 +253,11 @@ struct AudioTrack: Realmable, Codable {
|
|||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func getLocalFile() -> LocalFile? {
|
||||
guard let localFileId = self.localFileId else { return nil }
|
||||
return Database.shared.getLocalFile(localFileId: localFileId)
|
||||
}
|
||||
}
|
||||
|
||||
struct FileMetadata: Realmable, Codable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue