Fix loading of cover art from same directory.
parent
0b88e5f041
commit
1d84b7b682
|
@ -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]) {
|
||||||
|
|
Loading…
Reference in New Issue