From 0f543a1b526b12d89aaeba5004e0566063f060e4 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 17 Feb 2020 19:49:28 -0800 Subject: [PATCH] Guard background file info retrieval to prevent it in case only a single entry was added --- Playlist/PlaylistLoader.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Playlist/PlaylistLoader.m b/Playlist/PlaylistLoader.m index ff6d1f176..17fdbb105 100755 --- a/Playlist/PlaylistLoader.m +++ b/Playlist/PlaylistLoader.m @@ -469,7 +469,8 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL [restOfEntries removeObjectAtIndex:0]; [self performSelectorOnMainThread:@selector(syncLoadInfoForEntries:) withObject:firstEntry waitUntilDone:YES]; - [self performSelectorInBackground:@selector(loadInfoForEntries:) withObject:restOfEntries]; + if ([restOfEntries count]) + [self performSelectorInBackground:@selector(loadInfoForEntries:) withObject:restOfEntries]; return entries; }