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.21k stars 44 forks source link

Local files not visible in browse view #2411

Open canedje opened 3 weeks ago

canedje commented 3 weeks ago

What version of Music Assistant has the issue?

2.0.4

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

docker standalone

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

The problem

After my Unraid server crashing ans restart. Music-=Assistant is not showing my local disk content. THe directory is there but empty. I did create a /media mount to the right local music directory image image image

EDIT: It is possible to play music from local disk by using the search function

How to reproduce

It happens all the time

Music Providers

image image

Player Providers

image

Full log output

musicassistant.log

Additional information

No response

What version of Home Assistant Core are your running

standalone

What type of installation are you running?

Home Assistant Container

On what type of hardware are you running?

Alternative

OzGav commented 3 weeks ago

I think this is just a front end problem in browse view. You are reporting playback is working so that is all that really matters. Use the other views to find your music (or search). This will be looked at in due course.

canedje commented 3 weeks ago

I think this is just a front end problem in browse view. You are reporting playback is working so that is all that really matters. Use the other views to find your music (or search). This will be looked at in due course.

I do not know what that means. But that is not what realy matters, I'm just unable to find all my music back Not all music is available. If I do a search only a part of the localfiles are findable I did remove everything and started over. But still the local files are not visible

OzGav commented 3 weeks ago

Probably a tagging problem then. Check the logs and the docs

mcarty2 commented 3 weeks ago

My behavior is that I cant browse subfolders in filesystem (local files), only the files at the top folder are showed.

Ay1tsMe commented 2 weeks ago

This is also a problem with network storage devices. It only shows a few of the items rather than all the folders. The songs are getting imported and tagged correctly but not showing up in the browse section. Music Assistant is showing 13 items whereas there should be 288

image swappy-20240611-202420

marcelveldt commented 2 weeks ago

Does the music show up in the library (artists, albums, tracks ) ?

OzGav commented 2 weeks ago

Does the music show up in the library (artists, albums, tracks)?

Everything else was working fine when I tried it but only one folder was visible.

Ay1tsMe commented 2 weeks ago

Does the music show up in the library (artists, albums, tracks ) ?

Yes, the music's metadata is grabbed and is playable in all the views except the browse location.

canedje commented 2 weeks ago

Not for me. Only partitional

OzGav commented 2 weeks ago

Then @canedje you have a different problem

canedje commented 2 weeks ago

I did try again. I think I can find all music bij using the search function. This only works if I do search on the directory of the music. For example: Search Elvis presley (thats a directory in my music file system: image then I do find the directory in the way: image image Its not easy, but I can find at the end the localdisk music

OzGav commented 2 weeks ago

@canedje i think you are confused about how MA works. It doesn’t replicate your directory structure. In your second image you are viewing an alphabetical listing of all Elvia Presley tracks. However this is not an appropriate area to ask questions, please go to discord or open a Q&A in the discussions area.

OzGav commented 2 weeks ago

The issue with browse not showing all folders is fixed in the latest server versions

Ay1tsMe commented 2 weeks ago

Just updated and I still have the issue.

While I can see more folders (it now shows 52), all the folders are still not visible. I've noticed some strange behaviour where some of the folders are not visible unless I change how the list is sorted.

Here is what MA detects image

Here is the real folders: image

If I sort the list alphabetical "Yes - The Yes Album (1971)" will not appear but if I sort by original it does: https://picoshare.tuxtower.net/-fgzHFS7crK

And many other folders are not present at all but are detected and parsed in categories such as artists. For example this "Wham" folder: https://picoshare.tuxtower.net/-CJq6RxLb4X

OzGav commented 2 weeks ago

Quite right I didn’t look closely enough and interestingly I also only see 52 folders so that will be a clue!

canedje commented 2 weeks ago

My directory structure is back again. Thanks

mcarty2 commented 2 weeks ago

Fixed for me too with the update. I can browse filesystem/local files folders now.

MelHarbour commented 1 week ago

@OzGav I see that behaviour too. If you look in the raw stream though, the number of data points returned is actually 50, not 52 (magic ones I suspect for up folder level). That, I think, points a finger of blame at something like this line:

https://github.com/music-assistant/frontend/blob/7553714d748b53ba29b52671586ab38108fa18be/src/components/ItemsListing.vue#L253

Defaults to a limit of 50 when fetching. I suspect a default like that needs overriding here.