- }
-
- if ([defaults boolForKey:@"showTime"]) {
- int left = [[currentRemote currentSongRemaining] intValue];
- NSString *remaining = [NSString stringWithFormat:@"%i:%02i", left / 60, left % 60];
- [menu indentItem:[menu addItemWithTitle:[NSString stringWithFormat:@"%@/%@", remaining, [currentRemote currentSongLength]] action:nil keyEquivalent:@""]];
- }
-
- if ([defaults boolForKey:@"showTrackRating"]) {
- NSString *string = nil;
- switch ((int)([currentRemote currentSongRating] * 5)) {
- case 0:
- string = [NSString stringWithUTF8String:"☆☆☆☆☆"];
- break;
- case 1:
- string = [NSString stringWithUTF8String:"★☆☆☆☆"];
- break;
- case 2:
- string = [NSString stringWithUTF8String:"★★☆☆☆"];
- break;
- case 3:
- string = [NSString stringWithUTF8String:"★★★☆☆"];
- break;
- case 4:
- string = [NSString stringWithUTF8String:"★★★★☆"];
- break;
- case 5:
- string = [NSString stringWithUTF8String:"★★★★★"];
- break;
+
+ if ([defaults boolForKey:@"showTime"]) {
+ int left = [[currentRemote currentSongElapsed] intValue];
+ NSString *elapsed = [NSString stringWithFormat:@"%i:%02i", left / 60, left % 60];
+ ITDebugLog(@"Add Track Elapsed (\"%@/%@\") menu item.", elapsed, [currentRemote currentSongLength]);
+ [menu indentItem:[menu addItemWithTitle:[NSString stringWithFormat:@"%@/%@", elapsed, [currentRemote currentSongLength]] action:nil keyEquivalent:@""]];
+ }
+
+ if ([defaults boolForKey:@"showTrackRating"]) {
+ NSString *string = nil;
+ switch ((int)([currentRemote currentSongRating] * 5)) {
+ case 0:
+ string = [NSString stringWithUTF8String:"☆☆☆☆☆"];
+ break;
+ case 1:
+ string = [NSString stringWithUTF8String:"★☆☆☆☆"];
+ break;
+ case 2:
+ string = [NSString stringWithUTF8String:"★★☆☆☆"];
+ break;
+ case 3:
+ string = [NSString stringWithUTF8String:"★★★☆☆"];
+ break;
+ case 4:
+ string = [NSString stringWithUTF8String:"★★★★☆"];
+ break;
+ case 5:
+ string = [NSString stringWithUTF8String:"★★★★★"];
+ break;
+ }
+ ITDebugLog(@"Add Track Rating (\"%@\") menu item.", string);
+ [menu indentItem:[menu addItemWithTitle:string action:nil keyEquivalent:@""]];