Browse Source

playlist: minor tweak

Felix Paul Kühne 11 years ago
parent
commit
dde9e322fd
2 changed files with 6 additions and 2 deletions
  1. 3 1
      Sources/VLCPlaylistCollectionViewCell.m
  2. 3 1
      Sources/VLCPlaylistTableViewCell.m

+ 3 - 1
Sources/VLCPlaylistCollectionViewCell.m

@@ -188,7 +188,9 @@
         [string appendString:anyTrack.artist];
         [string appendString:@" — "];
     }
-    [string appendFormat:@"%@ — %@", [NSString stringWithFormat:(count > 1) ? NSLocalizedString(@"LIBRARY_TRACKS", @"") : NSLocalizedString(@"LIBRARY_SINGLE_TRACK", @""), count], album.releaseYear];
+    [string appendString:[NSString stringWithFormat:(count > 1) ? NSLocalizedString(@"LIBRARY_TRACKS", @"") : NSLocalizedString(@"LIBRARY_SINGLE_TRACK", @""), count]];
+    if (album.releaseYear)
+        [string appendFormat:@" — %@", album.releaseYear];
     self.subtitleLabel.text = string;
     self.mediaIsUnreadView.hidden = YES;
     self.progressView.hidden = YES;

+ 3 - 1
Sources/VLCPlaylistTableViewCell.m

@@ -182,7 +182,9 @@
         [string appendString:anyTrack.artist];
         [string appendString:@" — "];
     }
-    [string appendFormat:@"%@ — %@", [NSString stringWithFormat:(count > 1) ? NSLocalizedString(@"LIBRARY_TRACKS", @"") : NSLocalizedString(@"LIBRARY_SINGLE_TRACK", @""), count], album.releaseYear];
+    [string appendString:[NSString stringWithFormat:(count > 1) ? NSLocalizedString(@"LIBRARY_TRACKS", @"") : NSLocalizedString(@"LIBRARY_SINGLE_TRACK", @""), count]];
+    if (album.releaseYear)
+        [string appendFormat:@" — %@", album.releaseYear];
     self.subtitleLabel.text = string;
     self.mediaIsUnreadView.hidden = YES;
     self.progressIndicator.hidden = YES;