Merge pull request #936 from whatdoineed2do/scan-m3u-extgenre

[scan] support EXTGENRE in m3u playlist
This commit is contained in:
ejurgensen 2020-04-09 21:10:04 +02:00 committed by GitHub
commit 46b9a9d2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,12 @@ exttag_read(struct media_file_info *mfi, const char *tag)
mfi->album_artist = val; mfi->album_artist = val;
return 0; return 0;
} }
if (strncmp(tag, "#EXTGENRE:", strlen("#EXTGENRE:")) == 0 && extval_read(&val, tag) == 0)
{
free(mfi->genre);
mfi->genre = val;
return 0;
}
return -1; return -1;
} }