Commit ad948683 authored by Pierre SAGASPE's avatar Pierre SAGASPE

onedrive : no adding subtitles files in media list for action playing all or...

onedrive : no adding subtitles files in media list for action playing all or automatically play next item
parent 9390824b
......@@ -135,7 +135,7 @@
NSInteger posIndex = 0;
for (NSInteger x = count - 1; x > -1; x--) {
VLCOneDriveObject *iter = folderItems[x];
if (iter.isFolder)
if ((iter.isFolder) || [iter.name isSupportedSubtitleFormat])
continue;
NSURL *url = [NSURL URLWithString:iter.downloadPath];
if (url) {
......@@ -216,7 +216,7 @@
NSMutableArray *mediaItems = [[NSMutableArray alloc] init];
for (NSInteger x = count - 1; x > -1; x--) {
VLCOneDriveObject *iter = folderItems[x];
if (iter.isFolder)
if ((iter.isFolder) || [iter.name isSupportedSubtitleFormat])
continue;
NSURL *url = [NSURL URLWithString:iter.downloadPath];
......
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