Fix unnamed episodes table cells.
This commit is contained in:
1 file changed
+2
-2
@@ -532,8 +532,8 @@ class MetadataSearchController: NSWindowController, NSTableViewDataSource, NSTab
|
|||||||
switch search.type {
|
switch search.type {
|
||||||
case .tvShow:
|
case .tvShow:
|
||||||
if let season = result[.season] as? Int,
|
if let season = result[.season] as? Int,
|
||||||
let episode = result[.episodeNumber] as? Int,
|
let episode = result[.episodeNumber] as? Int {
|
||||||
let title = result[.name] as? String {
|
let title = result[.name] as? String ?? NSLocalizedString("Unnamed", comment: "Metadata Search -> Unnamed episode")
|
||||||
cell?.textField?.stringValue = "\(season)x\(episode) - \(title)"
|
cell?.textField?.stringValue = "\(season)x\(episode) - \(title)"
|
||||||
}
|
}
|
||||||
case .movie:
|
case .movie:
|
||||||
|
|||||||
Reference in new issue
Block a user