mirror of
https://github.com/koel/koel
synced 2024-12-01 00:09:17 +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:
|
// A "compilation" property can be determined by:
|
||||||
// - "part_of_a_compilation" tag (used by iTunes), or
|
// - "part_of_a_compilation" tag (used by iTunes), or
|
||||||
// - "albumartist" (used by non-retarded applications).
|
// - "albumartist" (used by non-retarded applications).
|
||||||
$props['compilation'] = (bool) (
|
// Also, the latter is only valid if the value is NOT the same as "artist".
|
||||||
array_get($comments, 'part_of_a_compilation', [false])[0] || $props['albumartist']
|
$props['compilation'] = array_get($comments, 'part_of_a_compilation', [false])[0]
|
||||||
);
|
|| ($props['albumartist'] && $props['artist'] !== $props['albumartist']);
|
||||||
|
|
||||||
return $props;
|
return $props;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue