From ec91f614034b71f3b2275d9f2398bd06bf913c68 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Fri, 24 Jun 2022 14:56:20 -0700 Subject: [PATCH] [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 --- Playlist/PlaylistController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index 019c912a7..0a0cf899e 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -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]) {