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
Christopher Snowhill 2023-05-31 22:35:06 -07:00
parent c88c9e9aa0
commit 689010b714
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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];