XML playlists will no longer store metadataLoaded for files where an error occurred
This commit is contained in:
parent
26cf87a62e
commit
e6a2773e8a
1 changed files with 5 additions and 0 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue