Browse Source

library: fix media display

Only list episodes and tracks if there aren't more in the album or show

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Carola Nitz 11 years ago
parent
commit
fee475cef1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/VLCPlaylistViewController.m

+ 2 - 2
Sources/VLCPlaylistViewController.m

@@ -261,7 +261,7 @@
     if (_libraryMode != VLCLibraryModeAllSeries) {
         NSArray *rawAlbums = [MLAlbum allAlbums];
         for (MLAlbum *album in rawAlbums) {
-            if (album.name.length > 0 && album.tracks.count > 0)
+            if (album.name.length > 0 && album.tracks.count > 1)
                 [_foundMedia addObject:album];
         }
     }
@@ -273,7 +273,7 @@
     /* add all shows */
     NSArray *rawShows = [MLShow allShows];
     for (MLShow *show in rawShows) {
-        if (show.name.length > 0 && show.episodes.count > 0)
+        if (show.name.length > 0 && show.episodes.count > 1)
             [_foundMedia addObject:show];
     }
     if (_libraryMode == VLCLibraryModeAllSeries) {