mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-31 15:19:34 +02:00
Prevent iCloud backups of downloads
This commit is contained in:
parent
02eabb82c1
commit
8edeefc1cd
3 changed files with 27 additions and 9 deletions
|
@ -25,7 +25,7 @@ struct LocalLibraryItem: Realmable, Codable {
|
|||
|
||||
var contentUrl: String? {
|
||||
if let path = _contentUrl {
|
||||
return AbsDownloader.downloadsDirectory.appendingPathComponent(path).absoluteString
|
||||
return AbsDownloader.itemDownloadFolder(path: path)!.absoluteString
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ struct LocalLibraryItem: Realmable, Codable {
|
|||
|
||||
var coverContentUrl: String? {
|
||||
if let path = self._coverContentUrl {
|
||||
return AbsDownloader.downloadsDirectory.appendingPathComponent(path).absoluteString
|
||||
return AbsDownloader.itemDownloadFolder(path: path)!.absoluteString
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ struct LocalFile: Realmable, Codable {
|
|||
var size: Int = 0
|
||||
|
||||
var contentUrl: String {
|
||||
return AbsDownloader.downloadsDirectory.appendingPathComponent(_contentUrl).absoluteString
|
||||
return AbsDownloader.itemDownloadFolder(path: _contentUrl)!.absoluteString
|
||||
}
|
||||
|
||||
static func primaryKey() -> String? {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue