[Playlist Loader] Deduplicate loaded items

Deduplicate loaded tracks, to prevent duplicate items when adding a
folder that happens to contain playlists or CUE sheets referencing the
very same files.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
main
Christopher Snowhill 2022-07-24 23:13:03 -07:00
parent e6bafa0b38
commit 7e06aef932
1 changed files with 3 additions and 0 deletions

View File

@ -455,6 +455,9 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
[self setProgressStatus:60.0]; [self setProgressStatus:60.0];
} }
// Deduplication of contained URLs
[fileURLs removeObjectsInArray:containedURLs];
DLog(@"File urls: %@", fileURLs); DLog(@"File urls: %@", fileURLs);
DLog(@"Contained urls: %@", containedURLs); DLog(@"Contained urls: %@", containedURLs);