Fix loading of cover art from same directory.

CQTexperiment
Dzmitry Neviadomski 2021-02-07 03:52:32 +03:00
parent 0b88e5f041
commit 1d84b7b682
1 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,8 @@
// Gather list of candidate image files // Gather list of candidate image files
NSArray *fileNames = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil]; NSArray *fileNames = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil];
NSArray *imageFileNames = [fileNames pathsMatchingExtensions:[NSImage imageTypes]]; NSArray *types = @[@"jpg", @"jpeg", @"png"];
NSArray *imageFileNames = [fileNames pathsMatchingExtensions:types];
for (NSString *fileName in imageFileNames) { for (NSString *fileName in imageFileNames) {
if ([TagLibMetadataReader isCoverFile:fileName]) { if ([TagLibMetadataReader isCoverFile:fileName]) {