From 689010b714dc5c3d2a8b421247aa5b3f04f47397 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Wed, 31 May 2023 22:35:06 -0700 Subject: [PATCH] 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 --- Playlist/PlaylistEntry.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Playlist/PlaylistEntry.m b/Playlist/PlaylistEntry.m index 2a038965a..7b664a442 100644 --- a/Playlist/PlaylistEntry.m +++ b/Playlist/PlaylistEntry.m @@ -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];