[Path Suggester] Only process local file URLs
Playlist entries for non-file URLs should be ignored. Signed-off-by: Christopher Snowhill <kode54@gmail.com>xcode15
parent
812da2e331
commit
3a16a53bd1
|
@ -78,6 +78,14 @@
|
||||||
NSArray *originalArray = [results valueForKey:@"url"];
|
NSArray *originalArray = [results valueForKey:@"url"];
|
||||||
NSMutableArray *array = [originalArray mutableCopy];
|
NSMutableArray *array = [originalArray mutableCopy];
|
||||||
|
|
||||||
|
for(NSURL *url in originalArray) {
|
||||||
|
if(![url isFileURL]) {
|
||||||
|
[array removeObject:url];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
originalArray = [array copy];
|
||||||
|
|
||||||
id audioContainerClass = NSClassFromString(@"AudioContainer");
|
id audioContainerClass = NSClassFromString(@"AudioContainer");
|
||||||
|
|
||||||
for(NSURL *url in originalArray) {
|
for(NSURL *url in originalArray) {
|
||||||
|
|
Loading…
Reference in New Issue