From 3a16a53bd17177989da5280f6a683323ec0370ff Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 7 Jul 2022 16:38:23 -0700 Subject: [PATCH] [Path Suggester] Only process local file URLs Playlist entries for non-file URLs should be ignored. Signed-off-by: Christopher Snowhill --- Preferences/Preferences/PathSuggester.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Preferences/Preferences/PathSuggester.m b/Preferences/Preferences/PathSuggester.m index b02ba1e3b..08e556c87 100644 --- a/Preferences/Preferences/PathSuggester.m +++ b/Preferences/Preferences/PathSuggester.m @@ -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) {