mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
Check for id3 compilation tag (credit @zmatsuo)
Ref. pr #127, issue #83 and maybe issue #63
This commit is contained in:
parent
1a96f651d2
commit
e101812478
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 item_kind; /* song or movie */
|
||||||
uint32_t data_kind; /* dmap.datakind (asdk) */
|
uint32_t data_kind; /* dmap.datakind (asdk) */
|
||||||
uint64_t sample_count;
|
uint64_t sample_count;
|
||||||
char compilation;
|
uint32_t compilation;
|
||||||
char artwork;
|
char artwork;
|
||||||
|
|
||||||
/* iTunes 5+ */
|
/* iTunes 5+ */
|
||||||
|
@ -118,6 +118,7 @@ static const struct metadata_map md_map_generic[] =
|
|||||||
{ "title-sort", 0, mfi_offsetof(title_sort), NULL },
|
{ "title-sort", 0, mfi_offsetof(title_sort), NULL },
|
||||||
{ "artist-sort", 0, mfi_offsetof(artist_sort), NULL },
|
{ "artist-sort", 0, mfi_offsetof(artist_sort), NULL },
|
||||||
{ "album-sort", 0, mfi_offsetof(album_sort), NULL },
|
{ "album-sort", 0, mfi_offsetof(album_sort), NULL },
|
||||||
|
{ "compilation", 1, mfi_offsetof(compilation), NULL },
|
||||||
|
|
||||||
{ NULL, 0, 0, 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_artist *artist;
|
||||||
sp_albumtype albumtype;
|
sp_albumtype albumtype;
|
||||||
bool starred;
|
bool starred;
|
||||||
char compilation;
|
int compilation;
|
||||||
char *albumname;
|
char *albumname;
|
||||||
|
|
||||||
spotify_cfg = cfg_getsec(cfg, "spotify");
|
spotify_cfg = cfg_getsec(cfg, "spotify");
|
||||||
|
Loading…
Reference in New Issue
Block a user