[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
Christopher Snowhill 2022-06-24 14:56:20 -07:00
parent 1a9c73d166
commit b9ef5853d6
1 changed files with 1 additions and 1 deletions

View File

@ -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]) {