mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-03 01:24:37 +02:00
Handle deleting library items
This commit is contained in:
parent
8edeefc1cd
commit
60cb5f398c
7 changed files with 40 additions and 22 deletions
|
@ -31,6 +31,14 @@ struct LocalLibraryItem: Realmable, Codable {
|
|||
}
|
||||
}
|
||||
|
||||
var contentDirectory: URL? {
|
||||
if let path = _contentUrl {
|
||||
return AbsDownloader.itemDownloadFolder(path: path)
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
var coverContentUrl: String? {
|
||||
if let path = self._coverContentUrl {
|
||||
return AbsDownloader.itemDownloadFolder(path: path)!.absoluteString
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue