YunoHost-Apps / jellyfin_ynh

Jellyfin package for YunoHost
https://jellyfin.org/
GNU General Public License v3.0
26 stars 24 forks source link

Music library not being processed #95

Closed jose1711 closed 2 years ago

jose1711 commented 2 years ago

Describe the bug

Wonder if it's just me but for some reason music-type library is always empty - things are just not being populated. Videos work fine.

Context

Steps to reproduce

  1. Throw a few mp3 files in
  2. Create a new Music-type library
  3. Force update manually
  4. Watch how nothing happened - library is empty
  5. Nothing in logs
Salamandar commented 2 years ago

Hmmm, what's the directory you put the files in ? Could you please give screenshots of the library directories configuration ?

This might be a file permission issue. I personally added the user jellyfin to the nextcloud group, so that files uploaded via NC are "discoverable" by Jellyfin.

jose1711 commented 2 years ago

Good point. I placed them into /home/yunohost.multimedia/share/Music. As soon as I copy them to a newly created /mp3 they become visible though. But this does not seem to be permission-related. As jellyfin user I can access files in both locations. Not really sure what makes the original location so special..

Salamandar commented 2 years ago

Hmmm @tituspijean does that ring a bell ?

tituspijean commented 2 years ago

@jose1711, can you run the following commands? (you can hide filenames if you prefer)

sudo su
ls -la /home/yunohost.multimedia/share/Music
ls -la /home/yunohost.multimedia/share/Music/mp3
getfacl -d /home/yunohost.multimedia/share/Music/mp3
tituspijean commented 2 years ago

After investigation (https://jellyfin.org/docs/general/server/media/music.html), I would guess it's normal. Jellyfin expects the files to be in a subdirectory (by artist).

Salamandar commented 2 years ago

Oh, yeah, that makes perfect sense, actually ^^''

jose1711 commented 2 years ago

Thank you for your suggestions - after taking a closer look I realized I made a mistake right at the beginning. My other movies library was set to /home/yunohost.multimedia/share instead of /home/yunohost.multimedia/share/Video. Apparently Jellyfin is unable to cope with situations where library folders overlap. All is good since I changed the location.

Salamandar commented 2 years ago

Nice, thank you for troubleshooting yourself the issue :) more users should do like you :)