2016-09-11, 14:37
What are Compilation Albums?
Musicbrainz says this
A compilation, for the purposes of the MusicBrainz database, covers the following types of releases:
So when discussing compilations I also include anthogies i.e. not all compilations are by various artists. Not everyone agrees with this broad view, and that is OK too, I just want to be clear what I am saying.
For songs without Musicbrainz ids Kodi uses the following logic to determine if an album is a compilation:
Otherwise if all the songs have mbids and compilation = 1 tag then the album is stored as a compilation, it does not matter what the song or album artists are. Also note that Musicbrainz will flag anthologies such as Greatest Hits (songs have all the same artist) as compilations, or sometimes use an album artist that isn't "various artists".
This leads to some unexpected behaviour - albums with songs with mbids being taken as compilations when loading the same music files but without mbids is not, and vice-versa.
I would like to adjust the logic when we don't have mbid so that 2b. is sufficient for an album to be flaged as a compilation. All the songs on the album are flagged as compilation then the album is a compilation regardless of what the album artist is.
That is compiltion flag = 1 AND ( 2b OR (2a AND (3a OR 3b)))
It still means that even without the compliation tag being set, and without mbids, if the songs have different artists or "Various Artists" as the album artist then it will be flagged as a compilation. Currently "Various Artists" is a language dependant string and that does cause other issues with multiple profiles in different languages, or when language is changed, taking that as a separate issue to be resolved separately.
But we need to be clear having being a compilation is not synonymous with "Various Artists" (in any language) as album artist; some compilations may have other album artist name(s).
When Are Compilation Albums Listed
The next big question is how the album compilation flag is used to control what is displayed in the various nodes.
There is a Compilations node, that lists those albums with compilation = true. No changes needed there.
But should compilations appear in the albums node? This appeared in the testing thread:
Thinking about it we could do with having "compilation" as a smart playlist rule. I'll add that to my list!
In Jarvis when looking at the albums for an artist you will see also the compilation albums (by "various artists") . There s a long thread discussing this http://forum.kodi.tv/showthread.php?tid=266181 and I hope we can avoid repeats. The upshot is I intend (hopefully sqeeking into v17) to only show those for the artist when the "show album and song artists" flag is enabled, and limit the albums to just those where the artist is the album artist when it is disabled.
Art and NFO Scraping Bug
Mentioning this to remind myself as much as anything as unlikely to fix in v17. There is a recommended work around that the various artist compliations are located in a separate folder that is either added to Kodi as a separate music source and/or named zzz_Compilations see http://forum.kodi.tv/showthread.php?tid=...pid2341616 to avoid artist art or NFO being scrapped from a compilation folder rather than that in the folder for that artist. It is an effect of the overly simplistic dependancy of scrapping artist data on the music by that artist having a unique common folder.
Cheer or boo?
Musicbrainz says this
A compilation, for the purposes of the MusicBrainz database, covers the following types of releases:
- a collection of recordings from various old sources (not necessarily released) combined together. For example a "best of", retrospective or rarities type release.
- a various artists song collection, usually based on a general theme ("Songs for Lovers"), a particular time period ("Hits of 1998"), or some other kind of grouping ("Songs From the Movies", the "Café del Mar" series, etc).
So when discussing compilations I also include anthogies i.e. not all compilations are by various artists. Not everyone agrees with this broad view, and that is OK too, I just want to be clear what I am saying.
For songs without Musicbrainz ids Kodi uses the following logic to determine if an album is a compilation:
Code:
1. album name is non-empty
AND
2a. the songs have different artists
OR
2b. all tracks are marked as part of compilation
AND
3a. a unique primary artist is specified as "various" or "various artists"
OR
3b. we have at least two primary artists and no album artist specified.
Otherwise if all the songs have mbids and compilation = 1 tag then the album is stored as a compilation, it does not matter what the song or album artists are. Also note that Musicbrainz will flag anthologies such as Greatest Hits (songs have all the same artist) as compilations, or sometimes use an album artist that isn't "various artists".
This leads to some unexpected behaviour - albums with songs with mbids being taken as compilations when loading the same music files but without mbids is not, and vice-versa.
I would like to adjust the logic when we don't have mbid so that 2b. is sufficient for an album to be flaged as a compilation. All the songs on the album are flagged as compilation then the album is a compilation regardless of what the album artist is.
That is compiltion flag = 1 AND ( 2b OR (2a AND (3a OR 3b)))
It still means that even without the compliation tag being set, and without mbids, if the songs have different artists or "Various Artists" as the album artist then it will be flagged as a compilation. Currently "Various Artists" is a language dependant string and that does cause other issues with multiple profiles in different languages, or when language is changed, taking that as a separate issue to be resolved separately.
But we need to be clear having being a compilation is not synonymous with "Various Artists" (in any language) as album artist; some compilations may have other album artist name(s).
~
Anyone experiencing deja vu I have said this all before here http://forum.kodi.tv/showthread.php?tid=279275When Are Compilation Albums Listed
The next big question is how the album compilation flag is used to control what is displayed in the various nodes.
There is a Compilations node, that lists those albums with compilation = true. No changes needed there.
But should compilations appear in the albums node? This appeared in the testing thread:
(2016-09-11, 00:10)Andrew-M Wrote: Since Jarvis and now in Krypton I have a problem with my compilation albums showing up under both ”Compilations” and ”Albums”. It used to – and I want it to – only appear under “Compilations”. I made no changes in my library, this happened after updating to Jarvis. I use local information only settings and my files are tagged with mp3tag.de. The tag “Album Artist” is set to “Various Artists” and used to work well before. Did I miss any setting or is there something I need to change in my tags?I may be having a funny 5 mins, but for the life of me I can't see that Kodi ever excluded compilation albums from the albums node. For a while "Various Artists" was always excluded from the artists node, it is included v16 onward if viewing album artists only. But whatever the past, I believe that the default albums node should include all albums including compilations. For those that want it, it is easy to make a folder type custom node that excludes compilations e.g.
Code:
<?xml version='1.0' encoding='UTF-8'?>
<node order="2" type="folder">
<label>Not Compilation Albums</label>
<icon>DefaultMusicAlbums.png</icon>
<path>musicdb://albums/?compilation=false</path>
</node>
Thinking about it we could do with having "compilation" as a smart playlist rule. I'll add that to my list!
In Jarvis when looking at the albums for an artist you will see also the compilation albums (by "various artists") . There s a long thread discussing this http://forum.kodi.tv/showthread.php?tid=266181 and I hope we can avoid repeats. The upshot is I intend (hopefully sqeeking into v17) to only show those for the artist when the "show album and song artists" flag is enabled, and limit the albums to just those where the artist is the album artist when it is disabled.
Art and NFO Scraping Bug
Mentioning this to remind myself as much as anything as unlikely to fix in v17. There is a recommended work around that the various artist compliations are located in a separate folder that is either added to Kodi as a separate music source and/or named zzz_Compilations see http://forum.kodi.tv/showthread.php?tid=...pid2341616 to avoid artist art or NFO being scrapped from a compilation folder rather than that in the folder for that artist. It is an effect of the overly simplistic dependancy of scrapping artist data on the music by that artist having a unique common folder.
Cheer or boo?