From e5ff30e11b535db095c4377a7d813683a6849665 Mon Sep 17 00:00:00 2001 From: whatdoineed2do/Ray Date: Thu, 9 Apr 2020 17:41:01 +0100 Subject: [PATCH] [scan] support #EXTGENRE: --- src/library/filescanner_playlist.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/library/filescanner_playlist.c b/src/library/filescanner_playlist.c index 133a50de..8eab96cc 100644 --- a/src/library/filescanner_playlist.c +++ b/src/library/filescanner_playlist.c @@ -131,6 +131,12 @@ exttag_read(struct media_file_info *mfi, const char *tag) mfi->album_artist = val; return 0; } + if (strncmp(tag, "#EXTGENRE:", strlen("#EXTGENRE:")) == 0 && extval_read(&val, tag) == 0) + { + free(mfi->genre); + mfi->genre = val; + return 0; + } return -1; }