mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont force unwrap author and title
This commit is contained in:
parent
809acd4e8b
commit
169149b3e1
1 changed files with 2 additions and 2 deletions
|
|
@ -296,8 +296,8 @@ public class AudioSession: NSObject, ObservableObject, AVAudioPlayerDelegate {
|
|||
|
||||
if let item = item {
|
||||
MPNowPlayingInfoCenter.default().nowPlayingInfo = [
|
||||
MPMediaItemPropertyTitle: NSString(string: item.title!),
|
||||
MPMediaItemPropertyArtist: NSString(string: item.author!),
|
||||
MPMediaItemPropertyTitle: NSString(string: item.title ?? "Your Omnivore Article"),
|
||||
MPMediaItemPropertyArtist: NSString(string: item.author ?? "Omnivore"),
|
||||
MPMediaItemPropertyPlaybackDuration: NSNumber(value: duration),
|
||||
MPNowPlayingInfoPropertyElapsedPlaybackTime: NSNumber(value: timeElapsed)
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue