Selaa lähdekoodia

library: fix incomplete media display (close #9785)

Felix Paul Kühne 11 vuotta sitten
vanhempi
commit
a1832ce70d
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      Sources/VLCPlaylistViewController.m

+ 7 - 0
Sources/VLCPlaylistViewController.m

@@ -286,6 +286,13 @@
     for (MLFile *file in allFiles) {
         if (!file.isShowEpisode && !file.isAlbumTrack)
             [_foundMedia addObject:file];
+        else if (file.isShowEpisode) {
+            if (file.showEpisode.show.episodes.count < 2)
+                [_foundMedia addObject:file];
+        } else if (file.isAlbumTrack) {
+            if (file.albumTrack.album.tracks.count < 2)
+                [_foundMedia addObject:file];
+        }
     }
 
     [self reloadViews];