Commit fee475ce authored by Carola's avatar Carola Committed by Felix Paul Kühne
Browse files

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's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 19b89264
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
if (_libraryMode != VLCLibraryModeAllSeries) { if (_libraryMode != VLCLibraryModeAllSeries) {
NSArray *rawAlbums = [MLAlbum allAlbums]; NSArray *rawAlbums = [MLAlbum allAlbums];
for (MLAlbum *album in rawAlbums) { 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]; [_foundMedia addObject:album];
} }
} }
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
/* add all shows */ /* add all shows */
NSArray *rawShows = [MLShow allShows]; NSArray *rawShows = [MLShow allShows];
for (MLShow *show in rawShows) { 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]; [_foundMedia addObject:show];
} }
if (_libraryMode == VLCLibraryModeAllSeries) { if (_libraryMode == VLCLibraryModeAllSeries) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment