Track properties take priority over metadata read from tag readers

This allows inputs to override things with self-read tags and such, such
as ReplayGain tags.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
CQTexperiment
Christopher Snowhill 2022-02-09 21:26:17 -08:00
parent 64c4aa2e25
commit df63726128
2 changed files with 3 additions and 3 deletions

View File

@ -122,8 +122,8 @@
if(entryProperties == nil)
return;
[entryInfo addEntriesFromDictionary:entryProperties];
[entryInfo addEntriesFromDictionary:[decoder metadata]];
[entryInfo addEntriesFromDictionary:entryProperties];
NSDictionary * info = [NSDictionary dictionaryWithDictionary:entryInfo];

View File

@ -561,8 +561,8 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
if(entryProperties == nil)
return;
[entryInfo addEntriesFromDictionary:entryProperties];
[entryInfo addEntriesFromDictionary:[AudioMetadataReader metadataForURL:weakPe.URL]];
[entryInfo addEntriesFromDictionary:entryProperties];
[weakLock lock];
[weakArray addObject:weakPe];
@ -641,8 +641,8 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
if(entryProperties == nil)
return;
[entryInfo addEntriesFromDictionary:entryProperties];
[entryInfo addEntriesFromDictionary:[AudioMetadataReader metadataForURL:pe.URL]];
[entryInfo addEntriesFromDictionary:entryProperties];
[pe setMetadata:entryInfo];
[store trackUpdate:pe];