fix optional getEpisodeLocator usage
This commit is contained in:
parent
cfc5d0202c
commit
06e170d94b
|
@ -92,13 +92,13 @@ struct LandscapeItemElement: View {
|
|||
.shadow(radius: focused ? 10.0 : 0, y: focused ? 10.0 : 0)
|
||||
if focused {
|
||||
if inSeasonView ?? false {
|
||||
Text("\(item.getEpisodeLocator()) • \(item.name ?? "")")
|
||||
Text("\(item.getEpisodeLocator() ?? "") • \(item.name ?? "")")
|
||||
.font(.callout)
|
||||
.fontWeight(.semibold)
|
||||
.lineLimit(1)
|
||||
.frame(width: 445)
|
||||
} else {
|
||||
Text(item.type == "Episode" ? "\(item.seriesName ?? "") • \(item.getEpisodeLocator())" : item.name ?? "")
|
||||
Text(item.type == "Episode" ? "\(item.seriesName ?? "") • \(item.getEpisodeLocator() ?? "")" : item.name ?? "")
|
||||
.font(.callout)
|
||||
.fontWeight(.semibold)
|
||||
.lineLimit(1)
|
||||
|
|
|
@ -55,7 +55,7 @@ struct MediaInfoView: View {
|
|||
Text(item.name ?? "Episode")
|
||||
.foregroundColor(.secondary)
|
||||
|
||||
Text(item.getEpisodeLocator())
|
||||
Text(item.getEpisodeLocator() ?? "")
|
||||
|
||||
if let date = item.premiereDate {
|
||||
Text(formatDate(date: date))
|
||||
|
|
Loading…
Reference in New Issue