diff options
author | Damiano Galassi <[email protected]> | 2017-01-02 14:37:23 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-01-02 14:37:23 +0100 |
commit | 2e1ee72df99040481cc555c4452b08956e0037eb (patch) | |
tree | 588e9db046b80c415d3fc933c8d250ba789bd346 /macosx | |
parent | d1bd5ae0019fcbd34bc7f77e74b2f1a1bacdff95 (diff) |
MacGui: use the bundle name as the title name for .eyetv bundles.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBTitle.m | 7 |
1 files changed, 7 insertions, 0 deletions
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) { |