mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #433] Presence of albumArtist in tags does not always mean compilation #309
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#309
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @X-Ryl669 on GitHub (Sep 1, 2016).
Original GitHub issue: https://github.com/koel/koel/issues/433
For many songs I have, the
albumartisttag is the same asartist, yet Koel thinks it's a compilation.This line of code is the culprit:
File.php:176
which, IMHO, should read:
@X-Ryl669 commented on GitHub (Sep 1, 2016):
Also, to be consistent, as soon as a song has a "compilation" set to true, then all songs in the album should be marked as a compilation (see my previous pull request for how I did it).
@BernardGoldberger commented on GitHub (Sep 6, 2016):
@X-Ryl669 sren't there compilation
albumswhere some of the songartistsmatch thealbumArtist?@X-Ryl669 commented on GitHub (Sep 6, 2016):
@bdgold Yes. But I'm saying the opposite. As soon as there is an
albumswhere thealbumArtistis notartistthen it's a compilation. Else, you can't say if it's a compilation (yet the current code thinks it is).Said differently, the current code only inspect a single song to make a decision, so it makes errors from its assumption most of the time. In theory, it should inspect all songs from an album to figure out if it's a compilation (like a "if count(SELECT DISTINCT artist_id FROM songsForThisAlbum) > 1" => album is a compilation).
Hopefully, the current database model is cool, and as soon as you find a single song that could tell you it's a compilation, you mark the complete album as a compilation.
The corrected code above does exactly this, it does not take any decision until
albumArtistis different thanartist, and then, it marks the complete album as a compilation.@BernardGoldberger commented on GitHub (Sep 6, 2016):
OK, I see, basically whenever there is a
albumArtistpresent in a song Koel thinks its part of a compilation.You are saying it should wait for a song in th album that has the
albumArtistdifferent than thecontributing_artist.Agreed.
Referencing https://github.com/phanan/koel/issues/403.
@alex-phillips commented on GitHub (Nov 22, 2016):
+1. A lot of my songs has the
bandtag full, but it is, in most cases, the same as the artist itself. All of these are then flagged in the code as compilations incorrectly.@phanan commented on GitHub (Sep 23, 2022):
This should have been fixed in more recent versions.