From 5c3050c0d37b1266196435c438c875937f6bf70a Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 17 Feb 2022 03:01:34 -0800 Subject: [PATCH] Playlist loader store: Adopt more correct method This is a more correct method of identifying the supported classes to coalesce into unique pointers through the storage array. I completely forgot about this method, oops. Signed-off-by: Christopher Snowhill --- Utils/RedundantPlaylistDataStore.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/RedundantPlaylistDataStore.m b/Utils/RedundantPlaylistDataStore.m index 8118eb3e9..6273cecd3 100644 --- a/Utils/RedundantPlaylistDataStore.m +++ b/Utils/RedundantPlaylistDataStore.m @@ -51,10 +51,10 @@ __block NSMutableDictionary *ret = [[NSMutableDictionary alloc] initWithCapacity:[entryInfo count]]; [entryInfo enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL *_Nonnull stop) { - if([[obj class] isSubclassOfClass:[NSString class]]) { + if([obj isKindOfClass:[NSString class]]) { NSString *stringObj = (NSString *)obj; [ret setObject:[self coalesceString:stringObj] forKey:key]; - } else if([[obj class] isSubclassOfClass:[NSData class]]) { + } else if([obj isKindOfClass:[NSData class]]) { NSData *dataObj = (NSData *)obj; [ret setObject:[self coalesceArt:dataObj] forKey:key]; } else {