mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 05:34:58 -05:00
Check for id3 compilation tag (credit @zmatsuo)
Ref. pr #127, issue #83 and maybe issue #63
This commit is contained in:
2
src/db.h
2
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+ */
|
||||
|
||||
@@ -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 }
|
||||
};
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user