From 2e1ee72df99040481cc555c4452b08956e0037eb Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 2 Jan 2017 14:37:23 +0100 Subject: [PATCH] MacGui: use the bundle name as the title name for .eyetv bundles. --- macosx/HBTitle.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m index cfe511157..acbaddcea 100644 --- a/macosx/HBTitle.m +++ b/macosx/HBTitle.m @@ -63,6 +63,13 @@ extern NSString *keySubTrackType; { _name = @(self.hb_title->name); + // Use the bundle name for eyetv + NSURL *parentURL = self.url.URLByDeletingLastPathComponent; + if ([parentURL.pathExtension caseInsensitiveCompare:@"eyetv"] == NSOrderedSame) + { + _name = parentURL.URLByDeletingPathExtension.lastPathComponent; + } + // If the name is empty use file/directory name if (_name.length == 0) { -- 2.40.0