瀏覽代碼

playlist: minor tweak

Felix Paul Kühne 11 年之前
父節點
當前提交
dde9e322fd
共有 2 個文件被更改,包括 6 次插入2 次删除
  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;