]> granicus.if.org Git - handbrake/commitdiff
MacGui: use the bundle name as the title name for .eyetv bundles.
authorDamiano Galassi <damiog@gmail.com>
Mon, 2 Jan 2017 13:37:23 +0000 (14:37 +0100)
committerDamiano Galassi <damiog@gmail.com>
Mon, 2 Jan 2017 13:37:23 +0000 (14:37 +0100)
macosx/HBTitle.m

index cfe511157167abd1667441b9311cd7c6bc455540..acbaddceafd8465def8f41464239cb258617c343 100644 (file)
@@ -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)
         {