mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Only consider an album “compiled” if albumartist != artist
This commit is contained in:
parent
d949ea9e60
commit
4246bcb45c
1 changed files with 3 additions and 3 deletions
|
@ -180,9 +180,9 @@ class File
|
|||
// A "compilation" property can be determined by:
|
||||
// - "part_of_a_compilation" tag (used by iTunes), or
|
||||
// - "albumartist" (used by non-retarded applications).
|
||||
$props['compilation'] = (bool) (
|
||||
array_get($comments, 'part_of_a_compilation', [false])[0] || $props['albumartist']
|
||||
);
|
||||
// Also, the latter is only valid if the value is NOT the same as "artist".
|
||||
$props['compilation'] = array_get($comments, 'part_of_a_compilation', [false])[0]
|
||||
|| ($props['albumartist'] && $props['artist'] !== $props['albumartist']);
|
||||
|
||||
return $props;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue