Explorar el Código

playlist: minor tweak

Felix Paul Kühne hace 11 años
padre
commit
dde9e322fd
Se han modificado 2 ficheros con 6 adiciones y 2 borrados
  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;