mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-02 09:04:40 +02:00
fix: Local artwork not loading
This commit is contained in:
parent
3e12ff139b
commit
bae5d97087
3 changed files with 25 additions and 26 deletions
|
@ -39,14 +39,18 @@ class LocalLibraryItem: Object, Codable {
|
|||
}
|
||||
}
|
||||
|
||||
var coverContentUrl: String? {
|
||||
var coverUrl: URL? {
|
||||
if let path = self._coverContentUrl {
|
||||
return AbsDownloader.itemDownloadFolder(path: path)!.absoluteString
|
||||
return AbsDownloader.itemDownloadFolder(path: path)
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
var coverContentUrl: String? {
|
||||
return self.coverUrl?.absoluteString
|
||||
}
|
||||
|
||||
var isBook: Bool { self.mediaType == "book" }
|
||||
var isPodcast: Bool { self.mediaType == "podcast" }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue