Remove the existing artworks when merging metadata.

This commit is contained in:
Damiano Galassi committed 2016-01-08 11:02:36 +01:00
1 parent 5b1fc61d02
commit c0ad9c14db
1 file changed
+4
+4
View File
@@ -565,6 +565,10 @@ static const genreType_t genreType_strings[] = {
}
}
if (metadata.artworks.count) {
[artworks removeAllObjects];
}
for (MP42Image *artwork in metadata.artworks) {
isArtworkEdited = YES;
[artworks addObject:artwork];