+ [menu addItemWithTitle:[NSString stringWithFormat:@" %@", title]
+ action:nil
+ keyEquivalent:@""];
+ }
+
+ if ([defaults boolForKey:@"showAlbum"]) {
+ NSString *curAlbum = [currentRemote currentSongAlbum];
+ if ([curAlbum length]) {
+ [menu addItemWithTitle:[NSString stringWithFormat:@" %@", curAlbum]
+ action:nil
+ keyEquivalent:@""];
+ }
+ }
+
+ if ([defaults boolForKey:@"showArtist"]) {
+ NSString *curArtist = [currentRemote currentSongArtist];
+ if ([curArtist length]) {
+ [menu addItemWithTitle:[NSString stringWithFormat:@" %@", curArtist]
+ action:nil
+ keyEquivalent:@""];
+ }
+ }
+
+ if ([defaults boolForKey:@"showTrackNumber"]) {
+ int track = [currentRemote currentSongTrack];
+ if (track) {
+ [menu addItemWithTitle:[NSString stringWithFormat:@" %@ %i", NSLocalizedString(@"track", @"Track"), track]
+ action:nil
+ keyEquivalent:@""];
+ }
+ }
+
+ if ([defaults boolForKey:@"showTime"]) {
+ int left = [[currentRemote currentSongRemaining] intValue];
+ NSString *remaining = [NSString stringWithFormat:@"%i:%02i", left / 60, left % 60];
+ [menu addItemWithTitle:[NSString stringWithFormat:@" %@/%@", remaining, [currentRemote currentSongLength]]
+ action:nil
+ keyEquivalent:@""];