XML playlists will no longer store metadataLoaded for files where an error occurred

CQTexperiment
Chris Moeller 2013-10-12 17:20:57 -07:00
parent 26cf87a62e
commit e6a2773e8a
1 changed files with 5 additions and 0 deletions

View File

@ -209,6 +209,8 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL
for (PlaylistEntry *pe in [playlistController content]) for (PlaylistEntry *pe in [playlistController content])
{ {
BOOL error = [pe error];
NSMutableDictionary * dict = dictionaryWithPropertiesOfObject(pe, filterList); NSMutableDictionary * dict = dictionaryWithPropertiesOfObject(pe, filterList);
NSString *path = [self relativePathFrom:filename toURL:[pe URL]]; NSString *path = [self relativePathFrom:filename toURL:[pe URL]];
@ -224,6 +226,9 @@ NSMutableDictionary * dictionaryWithPropertiesOfObject(id obj, NSArray * filterL
[dict setObject:hash forKey:@"albumArt"]; [dict setObject:hash forKey:@"albumArt"];
} }
if (error)
[dict removeObjectForKey:@"metadataLoaded"];
[topLevel addObject:dict]; [topLevel addObject:dict];
[dict release]; [dict release];