music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.39k stars 51 forks source link

Random Albums and Tracks showing up in wrong artist page #2726

Closed Ay1tsMe closed 3 months ago

Ay1tsMe commented 3 months ago

What version of Music Assistant has the issue?

2.1.0

What version of the Home Assistant Integration have you got installed?

2024.7.1.b0

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

The problem

When I play all the tracks from a specific artist, it will also add random songs from my library into that queue.

If I go to the artist page, it shows songs that are by another artist. These songs have no relation to the artist page but are there for some reason.

I believe the songs that are appearing are located on my remote file system.

Example 1: Artist page for Paul Hardcastle. Contains Kenny loggins and laura branigan incorrectly Screenshot_2024-08-05-22-31-27-33_c3a231c25ed346e59462e84656a70e50

Example 2: Artist page for Michael Jackson. Contains Fred again... Incorrectly Screenshot_2024-08-05-22-33-23-15_c3a231c25ed346e59462e84656a70e50

How to reproduce

Go to an artist page that contains a lot of songs. The artists that don't have much content didn't seem to have this issue.

Music Providers

Spotify File System

Player Providers

Using Sonos but shouldn't matter???

Full log output

music-assistant.log

Additional information

I have tried synchronising both Spotify and the remote file system I am using. That didn't seem to fix anything.

What version of Home Assistant Core are your running

2024.7.4

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Raspberry Pi

OzGav commented 3 months ago

It’s because you haven’t tagged them properly. Look at your logs it is full of warnings. Not sure how you missed that requirement on the troubleshooting page and in the docs for the file system provider. Why was the troubleshooting page not helpful here as it is the first thing on the page?

Ay1tsMe commented 3 months ago

I understand that some of the songs are not tagged properly but that's not the issue here. The issue is that some albums that are tagged properly are appearing under other artist pages. The examples I provided, all those songs are tagged properly.

OzGav commented 3 months ago

Until all the errors are removed due to tagging problems it is not possible to say what the issue is.

NightHawkATL commented 3 months ago

I am having the same issue and all of my music shows up fine in Plex which is where the music is linked from. It was working fine until the last update or so.

OzGav commented 3 months ago

@NightHawkATL Please ATTACH the full log from MA settings

NightHawkATL commented 3 months ago

@NightHawkATL Please ATTACH the full log from MA settings

MA Logs.txt

OzGav commented 3 months ago

I am having the same issue and all of my music shows up fine in Plex which is where the music is linked from. It was working fine until the last update or so.

Nothing interesting in the logs for you. The trouble is MA builds its own database and needs certain tags to be set to work properly. It isn't actually relevant if it works somewhere else. What you need to do is look at the tags of the original tracks. See if the ALBUM ARTIST tag is set. If not, that is likely the problem. (Additionally while you are looking at the tags see if the special MusicBrainz tags are set. Setting those will significantly enhance the experience with MA)

OzGav commented 3 months ago

And for everyone reading along I am not saying there isn't a bug but I am saying it isn't possible to tell if the tracks aren't tagged properly. We maintain a variety of test instances and they all work fine but the underlying local tracks are all tagged comprehensively with Picard.

NightHawkATL commented 3 months ago

I downloaded Picard and I have it scanning my library now. Majority so far has Album Artist set and the random ones I have looked at do have MusicBrainz IDs and other MusicBrainz info is provided.

Ay1tsMe commented 3 months ago

I don't think it's something to do with the metadata on the album. Here is the Laura Branigan Albums tagging info that is appearing in Paul Hardcastle's discography: https://picoshare.tuxtower.net/-WeSe7SjhH9

Correct me if I'm wrong but i don't think it's tagged incorrectly even though it is appearing in the wrong artist page.

Like @NightHawkATL said earlier, this also appeared to be an issue after updating the latest server version.

OzGav commented 3 months ago

What folder structure are you using? Do you have SHARE>>ARTIST>>ALBUM

edit: @Ay1tsMe you can also try a clean install and see if the problem presents. Perhaps you had DB errors that have only become apparent with the recent update. I have setup a filesystem and Spotify install and I don't see any weirdness.

Ay1tsMe commented 3 months ago

What folder structure are you using? Do you have SHARE>>ARTIST>>ALBUM

Yes, I believe I'm using the correct folder structure, current example is iPod_songs/Laura Branigan/Branigan

I'll try a clean install and see what happens.

NightHawkATL commented 3 months ago

Now that I have had Picard go through my entire library, it is being updated on Plex. Once that finishes, I will synchronize again in MA and see how things look.

NightHawkATL commented 3 months ago

After using Picard to make sure 95% of my music had Album Artist and having Plex rescan then syncing with MA, I still have issues with the wrong albums in artists.

MA: image

Plex: image

MusicBrainz Picard: image

OzGav commented 3 months ago

I would do a reinstall now to start fresh particularly if you noticed improvement.

NightHawkATL commented 3 months ago

I would do a reinstall now to start fresh particularly if you noticed improvement.

Just reinstalled and it is scanning now. Looks good after a reinstall. Just gotta figure out what to do,with a bunch of Album Artists with multiple artists that fill up the list of "Artists".

OzGav commented 3 months ago

Can you provide an example of a track with multiple album artists? Usually it is something like “John Travolta & Olivia Newton-John” and you would then see entries against “John Travolta”, “Olivia Newton-John” and “John Travolta & Olivia Newton-John”. The latter would be an album and no tracks and the first two would have tracks but no album.

NightHawkATL commented 3 months ago

Can you provide an example of a track with multiple album artists? Usually it is something like “John Travolta & Olivia Newton-John” and you would then see entries against “John Travolta”, “Olivia Newton-John” and “John Travolta & Olivia Newton-John”. The latter would be an album and no tracks and the first two would have tracks but no album.

image image image image image image image image image image image

OzGav commented 3 months ago

Yeah that looks like MA is working correctly if they are all the album artists although surprising Picard has it tagged that way (If you want you can post the tag info so we can look at that further). You could edit the tags manually and, for example, grab all of the Armin van Buuren tracks and change the album artist to just "Armin van Buuren" but leave the track artists as is. That way you can use the album artist filter to remove all the extras but you could still search for "Lauren Evans" (for example). Changing the album artists en masse might require a start from scratch again though

OzGav commented 3 months ago

Unless there is a different view I will close this as identified as a tagging problem?

Ay1tsMe commented 3 months ago

yeah uninstalling and reinstalling the server fixed it for me. Closing