mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-04 01:54:33 +02:00
Improved error handling
This commit is contained in:
parent
01678f2c91
commit
8c87b31e56
14 changed files with 220 additions and 141 deletions
|
@ -37,7 +37,7 @@ class AudioTrack: EmbeddedObject, Codable {
|
|||
contentUrl = try? values.decode(String.self, forKey: .contentUrl)
|
||||
mimeType = try values.decode(String.self, forKey: .mimeType)
|
||||
metadata = try? values.decode(FileMetadata.self, forKey: .metadata)
|
||||
localFileId = try! values.decodeIfPresent(String.self, forKey: .localFileId)
|
||||
localFileId = try? values.decodeIfPresent(String.self, forKey: .localFileId)
|
||||
serverIndex = try? values.decode(Int.self, forKey: .serverIndex)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue