Playlist: Fix merging dynamic metadata dictionary
Merge the existing metadata entry dictionary with new values, because sometimes, the caller may pass us a dictionary with some fields missing. Fixes stream metadata for many HTTP streams. Signed-off-by: Christopher Snowhill <kode54@gmail.com>main
parent
c88c9e9aa0
commit
689010b714
|
@ -503,7 +503,7 @@ NSURL *_Nullable urlForPath(NSString *_Nullable path) {
|
|||
self.error = YES;
|
||||
self.errorMessage = NSLocalizedStringFromTableInBundle(@"ErrorMetadata", nil, [NSBundle bundleForClass:[self class]], @"");
|
||||
} else {
|
||||
NSMutableDictionary *metaDict = [[NSMutableDictionary alloc] init];
|
||||
NSMutableDictionary *metaDict = [self.metadataBlob mutableCopy];
|
||||
self.volume = 1;
|
||||
for(NSString *key in metadata) {
|
||||
NSString *lowerKey = [key lowercaseString];
|
||||
|
|
Loading…
Reference in New Issue