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

@ -207,11 +207,13 @@ struct AudioTrack: Realmable, Codable {
mimeType = ""
}
mutating func setLocalInfo(filenameIdMap: [String: String], serverIndex: Int) {
mutating func setLocalInfo(filenameIdMap: [String: String], serverIndex: Int) -> Bool {
if let localFileId = filenameIdMap[self.metadata?.filename ?? ""] {
self.localFileId = localFileId
self.serverIndex = serverIndex
return true
}
return false
}
}