Browse Source

fix multiplying music album listings

Felix Paul Kühne 9 years ago
parent
commit
547d9dab75
3 changed files with 14 additions and 4 deletions
  1. 2 0
      NEWS
  2. 11 3
      Sources/VLCLibraryViewController.m
  3. 1 1
      compileVLCforiOS.sh

+ 2 - 0
NEWS

@@ -4,6 +4,8 @@
 * Fixed issues unlocking the app when a passcode was never set
 * Fixed issues unlocking the app when a passcode was never set
 * Fixed repeat one / repeat list
 * Fixed repeat one / repeat list
 * Fixed saving playback progress for files whose names contain spaces or umlauts
 * Fixed saving playback progress for files whose names contain spaces or umlauts
+* Fixed multiplying music album listings
+* Show music albums with 1 track correctly in the music album's list
 * Improved SMB compatibility
 * Improved SMB compatibility
 * UPnP reliability improvements, notably with Kodi
 * UPnP reliability improvements, notably with Kodi
 
 

+ 11 - 3
Sources/VLCLibraryViewController.m

@@ -507,9 +507,17 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
     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 > 1) {
-                @synchronized(self) {
-                    [_foundMedia addObject:album];
+            if (_libraryMode != VLCLibraryModeAllAlbums) {
+                if (album.name.length > 0 && album.tracks.count > 1) {
+                    @synchronized(self) {
+                        [_foundMedia addObject:album];
+                    }
+                }
+            } else {
+                if (album.name.length > 0) {
+                    @synchronized(self) {
+                        [_foundMedia addObject:album];
+                    }
                 }
                 }
             }
             }
         }
         }

+ 1 - 1
compileVLCforiOS.sh

@@ -13,7 +13,7 @@ SKIPLIBVLCCOMPILATION=no
 TVOS=no
 TVOS=no
 
 
 TESTEDVLCKITHASH=6012c098
 TESTEDVLCKITHASH=6012c098
-TESTEDMEDIALIBRARYKITHASH=a92e78ce
+TESTEDMEDIALIBRARYKITHASH=ba9b544c
 
 
 usage()
 usage()
 {
 {