diff options
author | Damiano Galassi <[email protected]> | 2017-12-11 19:25:40 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-12-11 19:25:40 +0100 |
commit | 821dff54c3dd2015d123b94ec04f2d03e73dacf4 (patch) | |
tree | 2b64adca6d815bb4e3d6f20d011ccb9e7663f81e | |
parent | 6d5e07f494da73286709bbbccd2a43c1c0e6e64d (diff) |
MacGui: rearrange the title description to show the index and timecode before the file name.
-rw-r--r-- | macosx/HBTitle.m | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m index 1e5e8654e..c5536e9ba 100644 --- a/macosx/HBTitle.m +++ b/macosx/HBTitle.m @@ -89,15 +89,18 @@ extern NSString *keySubTrackType; { if (self.hb_title->type == HB_BD_TYPE) { - return [NSString stringWithFormat:@"%@ %d (%05d.MPLS) - %@", - @(self.hb_title->name), self.hb_title->index, self.hb_title->playlist, - self.timeCode]; + return [NSString stringWithFormat:@"%d (%05d.MPLS) - %@", + self.hb_title->index, self.hb_title->playlist, self.timeCode]; + } + else if (self.hb_title->type == HB_DVD_TYPE) + { + return [NSString stringWithFormat:@"%d - %@", + self.hb_title->index, self.timeCode]; } else { - return [NSString stringWithFormat:@"%@ %d - %@", - @(self.hb_title->name), self.hb_title->index, - self.timeCode]; + return [NSString stringWithFormat:@"%d - %@ - %@", + self.hb_title->index, self.timeCode, @(self.hb_title->name)]; } } @@ -129,7 +132,7 @@ extern NSString *keySubTrackType; - (NSString *)timeCode { - return [NSString stringWithFormat:@"%02dh%02dm%02ds", + return [NSString stringWithFormat:@"%02d:%02d:%02d", self.hb_title->hours, self.hb_title->minutes, self.hb_title->seconds]; } |