Improve MediaKind usage.

This commit is contained in:
Damiano Galassi committed 2020-02-04 17:54:08 +01:00
1 parent 2ad39bfed6
commit 2694bdee45
9 files changed
+185 -191

No files matched your search

+1 -1
View File
@@ -366,7 +366,7 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
@IBAction func searchChapters(_ sender: Any?) {
let name = mp4.metadata.metadataItemsFiltered(byIdentifier: MP42MetadataKeyName).first?.stringValue
let url = mp4.firstSourceURL() ?? doc.fileURL
let url = mp4.firstSourceURL ?? doc.fileURL
let title = (name?.isEmpty == false ? name : url?.lastPathComponent) ?? ""
let duration = UInt64(mp4.duration)