Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playlist: relative Path not working when going up two levels #2291

Open
1 task done
sebmuc99 opened this issue May 14, 2024 · 6 comments
Open
1 task done

Playlist: relative Path not working when going up two levels #2291

sebmuc99 opened this issue May 14, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@sebmuc99
Copy link

What version of Music Assistant has the issue?

2.0.3

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

No response

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

  • Yes

The problem

relative Path in local Playlists not working

image

How to reproduce

Use relative Path in Playlists

Music Providers

local disc

Player Providers

any

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.5.3

What type of installation are you running?

Home Assistant Core

On what type of hardware are you running?

Raspberry Pi

@marcelveldt
Copy link
Member

Relative paths are supported but not in an higher level than the folder you added to the file provider.

@Rudd-O
Copy link

Rudd-O commented May 14, 2024

A bit of context is needed:

The MASS container mounts your music on /media. Naturally, any playlist that tries to traverse above that folder (using relative paths) will look invalid from the perspective of MASS, even if it works directly on the machine serving or containing the files.

@sebmuc99
Copy link
Author

All music Files are located here (no Folders for Arist or whatever):
/volume1/media01/musicLibrary/musicLibrary/

All Playlists are located here:
/volume1/media01/musicLibrary/musicLibrary/_PLAYLISTS

thats my mounting:
/volume1/media01/musicLibrary/musicLibrary:/media

Sample1 is working: located in /media/_PLAYLISTS/Happy Favorits 2.m3u
../FILE003372.mp3
../FILE004255.mp3

Sample2 is working (wired because the path is not correct): located in /media/_PLAYLISTS/Happy Favorits 3.m3u
FILE003372.mp3
FILE004255.mp3

Sample3 is NOT working: located in /media/_PLAYLISTS/Allgemein/Happy Favorits.m3u
../../FILE000996.mp3
../../FILE004803.mp3

@OzGav
Copy link
Contributor

OzGav commented May 16, 2024

Based on the above it seems the title of this report is incorrect. For paths that only go up one level it seems to work but when going up two levels it does not. Is that the case?

@OzGav OzGav changed the title Playlist: relative Path & Unix Path not working Playlist: relative Path not working when going up two levels May 20, 2024
@OzGav OzGav added bug Something isn't working and removed More info triage labels May 20, 2024
@Rudd-O
Copy link

Rudd-O commented May 29, 2024

Sample3 is NOT working: located in /media/_PLAYLISTS/Allgemein/Happy Favorits.m3u
../../FILE000996.mp3
../../FILE004803.mp3

Yes, that's not gonna work because it's trying to go above /media.

@OzGav
Copy link
Contributor

OzGav commented May 29, 2024

@Rudd-O i think it goes to media doesn’t it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: next
Development

No branches or pull requests

4 participants