From 4828b7f1c10486afee5076d93d6816dc86bef64d Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 11 Jun 2022 06:37:31 -0700 Subject: [PATCH] [FFMPEG Input] Metadata reader supports "genre" Add support for plain "genre" tag, in addition to the previously supported "icy-genre" field for streams, this one is for static files. 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 ff90dcc68..5bc42c975 100644 --- a/Plugins/FFMPEG/FFMPEGDecoder.m +++ b/Plugins/FFMPEG/FFMPEGDecoder.m @@ -533,7 +533,8 @@ static uint8_t reverse_bits[0x100]; } } else if(!strcasecmp(tag->key, "icy-url")) { _album = guess_encoding_of_string(tag->value); - } else if(!strcasecmp(tag->key, "icy-genre")) { + } else if(!strcasecmp(tag->key, "icy-genre") || + !strcasecmp(tag->key, "genre")) { _genre = guess_encoding_of_string(tag->value); } else if(!strcasecmp(tag->key, "album")) { _album = guess_encoding_of_string(tag->value);