Bug 409147 - Albums appear duplicated if they have different artists
Summary: Albums appear duplicated if they have different artists
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (other bugs)
Version First Reported In: 0.4.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
: 413459 413655 415095 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-06-24 19:39 UTC by Luca Weiss
Modified: 2019-12-13 11:11 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 19.12.0
Sentry Crash Report:


Attachments
Screenshot showing the problem (328.21 KB, image/png)
2019-06-24 19:39 UTC, Luca Weiss
Details
Screenshot of kid3 with the metadata of two such files (31.14 KB, image/png)
2019-06-25 06:05 UTC, Luca Weiss
Details
Image of Clementine showing compilations with an artist of "Various artists" (78.40 KB, image/png)
2019-07-09 07:52 UTC, Steve Evans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Weiss 2019-06-24 19:39:44 UTC
Created attachment 121117 [details]
Screenshot showing the problem

SUMMARY
I have several albums on my PC which in the ID3 tags only have the same "Album" tag, the Artist tag is different for the songs in these albums.
But in Elisa in the "Albums" view I see these albums many times for each artist and each "Album" in Elisa contains only the Album<->Artist combo instead of being grouped into one Album.

STEPS TO REPRODUCE
1. Have multiple files with the same Album tag but different Artist tags

OBSERVED RESULT
Observe that they don't get grouped into one album but into an album per artist

EXPECTED RESULT
Instead of being one Album per album tag with the different songs/artist being inside that.
Comment 1 Matthieu Gallien 2019-06-25 05:52:04 UTC
Thanks for your report.

I have a couple questions needed to better understand what happen.

In my case, tracks often have both album and artist album. In this case, the compilation will not get duplicated. Do yours have missing album artist metadata ?

There is a feature to not collapse identically named albums in case the path is different (and album artist is missing). This should work under the hypothesis that if the path is different they are probably different albums. Is this your case ?
Comment 2 Luca Weiss 2019-06-25 06:05:10 UTC
No, these files don't have an album artist set, from what I can see. They are in the same directory though. I'll attach a screenshot of Kid3 showing two different items in such an album; but aside from being in the same directory, the only metadata-similarity is the Album tag.
Comment 3 Luca Weiss 2019-06-25 06:05:31 UTC
Created attachment 121122 [details]
Screenshot of kid3 with the metadata of two such files
Comment 4 Steve Evans 2019-06-25 09:32:50 UTC
I have the same issue. In my case the albums also have the 'Compilation' tag set
Comment 5 Nate Graham 2019-06-25 10:25:22 UTC
Confirmed, I have the same problem for my albums where the individual songs have different artists but the Compilation bit is set. The problem seems to happen when the "artist" value differs and there is no "album artist" values set.
Comment 6 Nate Graham 2019-06-25 10:26:29 UTC
I can provide individual files for such albums if necessary, or any other required documentation.
Comment 7 Alexander Stippich 2019-07-08 18:46:31 UTC
I think this is a result of
https://phabricator.kde.org/D20531
Without this, albums of tracks without an album artist tag would not be added to the database. Elisa should probably use more metadata to correctly guess the album artist.
The current behavior is also one I've seen with other players I think. Actually, how should Elisa actually know what the correct artist name is?
Comment 8 Steve Evans 2019-07-09 07:52:05 UTC
Created attachment 121412 [details]
Image of Clementine showing compilations with an artist of "Various artists"
Comment 9 Steve Evans 2019-07-09 07:54:08 UTC
In reply to comment #7:

All other music players I have seen use a generic name for compilation albums. For example the KDE player Clementine calls them "Various artists". See the screen shot I have added.
Comment 10 Nate Graham 2019-07-09 10:35:26 UTC
+1 for showing "Various Artists" as the artist in the grid browser views for albums that have multiple artists. In any of the list views, we should show the different artists for each track when there's space (and when there's not, just omit that column).
Comment 11 Matthieu Gallien 2019-07-09 12:04:50 UTC
(In reply to Nate Graham from comment #10)
> +1 for showing "Various Artists" as the artist in the grid browser views for
> albums that have multiple artists. In any of the list views, we should show
> the different artists for each track when there's space (and when there's
> not, just omit that column).

It is already the case. It is possible that something got broken and in some case this did not happen.
Comment 12 Matthieu Gallien 2019-07-10 06:01:29 UTC
(In reply to Matthieu Gallien from comment #11)
> (In reply to Nate Graham from comment #10)
> > +1 for showing "Various Artists" as the artist in the grid browser views for
> > albums that have multiple artists. In any of the list views, we should show
> > the different artists for each track when there's space (and when there's
> > not, just omit that column).
> 
> It is already the case. It is possible that something got broken and in some
> case this did not happen.

I will try to fix it today if nobody does it before.
Comment 13 Matthieu Gallien 2019-07-10 20:49:38 UTC
(In reply to Matthieu Gallien from comment #12)
> (In reply to Matthieu Gallien from comment #11)
> > (In reply to Nate Graham from comment #10)
> > > +1 for showing "Various Artists" as the artist in the grid browser views for
> > > albums that have multiple artists. In any of the list views, we should show
> > > the different artists for each track when there's space (and when there's
> > > not, just omit that column).
> > 
> > It is already the case. It is possible that something got broken and in some
> > case this did not happen.
> 
> I will try to fix it today if nobody does it before.

I can reproduce it easily. Let's fix it.
Comment 14 Matthieu Gallien 2019-07-16 22:06:47 UTC
I have a work in progress diff request to fix that: https://phabricator.kde.org/D22499

More work is needed and I do not know when I will be able to do it.

There are quite a few corner cases to handle when metadata is missing or partial.
Comment 15 Matthieu Gallien 2019-08-06 20:10:16 UTC
Git commit 61f063362cde8dd26f36cc5ce35740f54702bcdf by Matthieu Gallien.
Committed on 06/08/2019 at 20:09.
Pushed by mgallien into branch 'master'.

fix the compilation album insertion

Summary:
partial fix for handling albums without album artist

partially handle the case of compilations not getting Various Artists as
album artist

Test Plan: all tests are fine and most common cases should be covered.

Reviewers: #elisa, ngraham, astippich

Reviewed By: #elisa, ngraham

Differential Revision: https://phabricator.kde.org/D22499

M  +125  -57   autotests/databaseinterfacetest.cpp
M  +12   -11   autotests/datamodeltest.cpp
M  +7    -7    autotests/mediaplaylisttest.cpp
M  +382  -140  src/databaseinterface.cpp
M  +4    -3    src/databaseinterface.h
M  +1    -0    src/mediaplaylist.h
M  +2    -0    src/models/trackmetadatamodel.cpp

https://commits.kde.org/elisa/61f063362cde8dd26f36cc5ce35740f54702bcdf
Comment 16 Luca Weiss 2019-08-06 20:16:06 UTC
Thanks, elisa on the latest git commit displays my albums correctly!
Comment 17 Nate Graham 2019-10-27 23:23:22 UTC
*** Bug 413459 has been marked as a duplicate of this bug. ***
Comment 18 Nate Graham 2019-11-04 14:54:58 UTC
*** Bug 413655 has been marked as a duplicate of this bug. ***
Comment 19 Nate Graham 2019-12-13 11:11:29 UTC
*** Bug 415095 has been marked as a duplicate of this bug. ***