From ab512e50867550cb618bd82ccda4622e570f7133 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 16 Oct 2022 15:00:06 -0700 Subject: [PATCH] Handle external artwork with .heic extension External artwork already supported the HEIC format, just not the correct filename extension for the format. Signed-off-by: Christopher Snowhill --- Audio/PluginController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Audio/PluginController.mm b/Audio/PluginController.mm index 55dba4779..9251dfefa 100644 --- a/Audio/PluginController.mm +++ b/Audio/PluginController.mm @@ -714,7 +714,7 @@ static NSString *xmlEscapeString(NSString * string) { // Gather list of candidate image files NSArray *fileNames = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil]; - NSArray *types = @[@"jpg", @"jpeg", @"png", @"gif", @"webp", @"avif"]; + NSArray *types = @[@"jpg", @"jpeg", @"png", @"gif", @"webp", @"avif", @"heic"]; NSArray *imageFileNames = [fileNames pathsMatchingExtensions:types]; for(NSString *fileName in imageFileNames) {