From 821dff54c3dd2015d123b94ec04f2d03e73dacf4 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Mon, 11 Dec 2017 19:25:40 +0100 Subject: [PATCH] MacGui: rearrange the title description to show the index and timecode before the file name. --- macosx/HBTitle.m | 17 ++++++++++------- 1 file 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]; } -- 2.40.0