[scan] Fix reading of FLAC tags

Regression from PR #1655. Closes #1673.
This commit is contained in:
ejurgensen 2023-10-26 22:40:23 +02:00
parent 9e9dc27a59
commit 253a699001

View File

@ -299,12 +299,12 @@ extract_metadata_from_kv(struct media_file_info *mfi, const char *key, const cha
if ((value == NULL) || (strlen(value) == 0))
return 0;
if (strncmp(key, "lyrics-", sizeof("lyrics-") - 1) == 0)
if (strncasecmp(key, "lyrics-", sizeof("lyrics-") - 1) == 0)
key = "lyrics";
for (i = 0; md_map[i].key != NULL; i++)
{
if (strcmp(key, md_map[i].key) == 0)
if (strcasecmp(key, md_map[i].key) == 0)
break;
}