summaryrefslogtreecommitdiffstats
path: root/MusicConverter/View/Napster/NapsterSongListItemView.swift
diff options
context:
space:
mode:
Diffstat (limited to 'MusicConverter/View/Napster/NapsterSongListItemView.swift')
-rw-r--r--MusicConverter/View/Napster/NapsterSongListItemView.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/MusicConverter/View/Napster/NapsterSongListItemView.swift b/MusicConverter/View/Napster/NapsterSongListItemView.swift
index 8fbca75..c40cecb 100644
--- a/MusicConverter/View/Napster/NapsterSongListItemView.swift
+++ b/MusicConverter/View/Napster/NapsterSongListItemView.swift
@@ -21,8 +21,8 @@ struct NapsterSongListItemView: View {
return Image(systemName: "photo")
}*/
- print("id: \(self.choice.song.attributes.playParams.id)")
- let mpContentItem = MPContentItem(identifier: self.choice.song.attributes.playParams.id)
+ print("id: \(self.choice.song.attributes.playParams?.id ?? "error")")
+ let mpContentItem = MPContentItem(identifier: self.choice.song.attributes.playParams?.id ?? "error")
print("mpContentItem: \(mpContentItem)")
return Text(mpContentItem.title ?? "error")
}