Check for id3 compilation tag (credit @zmatsuo)

Ref. pr #127, issue #83 and maybe issue #63
This commit is contained in:
ejurgensen 2015-04-01 23:08:34 +02:00
parent 1a96f651d2
commit e101812478
3 changed files with 3 additions and 2 deletions

View File

@ -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+ */

View File

@ -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 }
};

View File

@ -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");