From 02e1276df8cc4209cc52f81b93f7c2b0e29ab0a2 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 5 Jul 2022 18:11:45 -0700 Subject: [PATCH] [FFmpeg Decoder] Further improve Matroska tags Matroska defaults the date field to "date_recorded". Signed-off-by: Christopher Snowhill --- Plugins/FFMPEG/FFMPEGDecoder.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/FFMPEG/FFMPEGDecoder.m b/Plugins/FFMPEG/FFMPEGDecoder.m index 4a8aba3d0..af62db24a 100644 --- a/Plugins/FFMPEG/FFMPEGDecoder.m +++ b/Plugins/FFMPEG/FFMPEGDecoder.m @@ -591,7 +591,8 @@ static uint8_t reverse_bits[0x100]; } else { _title = _tag; } - } else if(!strcasecmp(tag->key, "date")) { + } else if(!strcasecmp(tag->key, "date") || + !strcasecmp(tag->key, "date_recorded")) { NSString *dateString = guess_encoding_of_string(tag->value); _year = @([dateString intValue]); } else if(!strcasecmp(tag->key, "track")) {