Support downloading new podcast episodes

This commit is contained in:
ronaldheft 2022-08-11 12:30:45 -04:00
parent e52a5fd585
commit 5f4ff38035
5 changed files with 41 additions and 16 deletions

View file

@ -9,7 +9,7 @@ import Foundation
import Unrealm
struct LocalLibraryItem: Realmable, Codable {
var id: String = "local_\(UUID().uuidString)"
var id: String = ""
var basePath: String = ""
var _contentUrl: String?
var isInvalid: Bool = false
@ -39,6 +39,8 @@ struct LocalLibraryItem: Realmable, Codable {
}
}
var isPodcast: Bool { self.mediaType == "podcast" }
static func primaryKey() -> String? {
return "id"
}