diff --git a/src/db.h b/src/db.h index 82f5e9e9..bf9b9bbe 100644 --- a/src/db.h +++ b/src/db.h @@ -130,7 +130,7 @@ struct media_file_info { uint32_t item_kind; /* song or movie */ uint32_t data_kind; /* dmap.datakind (asdk) */ uint64_t sample_count; - char compilation; + uint32_t compilation; char artwork; /* iTunes 5+ */ diff --git a/src/filescanner_ffmpeg.c b/src/filescanner_ffmpeg.c index c70a2530..9854dfdd 100644 --- a/src/filescanner_ffmpeg.c +++ b/src/filescanner_ffmpeg.c @@ -118,6 +118,7 @@ static const struct metadata_map md_map_generic[] = { "title-sort", 0, mfi_offsetof(title_sort), NULL }, { "artist-sort", 0, mfi_offsetof(artist_sort), NULL }, { "album-sort", 0, mfi_offsetof(album_sort), NULL }, + { "compilation", 1, mfi_offsetof(compilation), NULL }, { NULL, 0, 0, NULL } }; diff --git a/src/spotify.c b/src/spotify.c index 561d33e9..dfeb2ba8 100644 --- a/src/spotify.c +++ b/src/spotify.c @@ -476,7 +476,7 @@ spotify_metadata_get(sp_track *track, struct media_file_info *mfi, char *pltitle sp_artist *artist; sp_albumtype albumtype; bool starred; - char compilation; + int compilation; char *albumname; spotify_cfg = cfg_getsec(cfg, "spotify");