[Metadata] Commit first seen date for whole batch
Commit only once the entire batch is loaded and processed. Also commit using the correct function. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
1a9c73d166
commit
b9ef5853d6
|
@ -279,7 +279,6 @@ static void *playlistControllerContext = &playlistControllerContext;
|
|||
pc.artist = pe.artist;
|
||||
pc.title = pe.title;
|
||||
pc.filename = pe.filename;
|
||||
[self commitEditing];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1679,6 +1678,7 @@ static void *playlistControllerContext = &playlistControllerContext;
|
|||
for(PlaylistEntry *pe in urls) {
|
||||
[self firstSawTrack:pe];
|
||||
}
|
||||
[self commitPersistentStore];
|
||||
|
||||
NSArray *nsurls = [urls valueForKey:@"url"];
|
||||
if(![[SandboxBroker sharedSandboxBroker] areAllPathsSafe:nsurls]) {
|
||||
|
|
Loading…
Reference in New Issue