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
parent
64c4aa2e25
commit
df63726128
|
@ -122,8 +122,8 @@
|
|||
if(entryProperties == nil)
|
||||
return;
|
||||
|
||||
[entryInfo addEntriesFromDictionary:entryProperties];
|
||||
[entryInfo addEntriesFromDictionary:[decoder metadata]];
|
||||
[entryInfo addEntriesFromDictionary:entryProperties];
|
||||
|
||||
NSDictionary * info = [NSDictionary dictionaryWithDictionary:entryInfo];
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue