[Path Suggester] Only process local file URLs

Playlist entries for non-file URLs should be ignored.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
main
Christopher Snowhill 2022-07-07 16:38:23 -07:00
parent 63ca187aa7
commit b29d19966f
1 changed files with 8 additions and 0 deletions

View File

@ -78,6 +78,14 @@
NSArray *originalArray = [results valueForKey:@"url"];
NSMutableArray *array = [originalArray mutableCopy];
for(NSURL *url in originalArray) {
if(![url isFileURL]) {
[array removeObject:url];
}
}
originalArray = [array copy];
id audioContainerClass = NSClassFromString(@"AudioContainer");
for(NSURL *url in originalArray) {