Commit 03d3c144 authored by Soomin Lee's avatar Soomin Lee Committed by Jean-Baptiste Kempf

iOS: Add filter to VLCOneDriveObject to show only supported file

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8f31dd11
......@@ -12,6 +12,7 @@
#import "VLCOneDriveObject.h"
#import "VLCHTTPFileDownloader.h"
#import "NSString+SupportedMedia.h"
#if TARGET_OS_IOS
@interface VLCOneDriveObject () <VLCHTTPFileDownloader>
......@@ -133,7 +134,11 @@
oneDriveObject.duration = rawObject[@"duration"];
[folderFiles addObject:oneDriveObject];
}
[items addObject:oneDriveObject];
//Display only folders and supported files.
if (oneDriveObject.isFolder || [oneDriveObject.name isSupportedFormat])
[items addObject:oneDriveObject];
}
self.folders = subFolders;
......
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