How do I add media to a co-op cloud instance of Jellyfin? #1

Open
opened 2022-05-19 16:29:02 +00:00 by aadil · 4 comments
Owner

So I have a bunch of media folders that I'd like to import into a running instance of jellyfin managed through co-op clouds. The folders are in my home folder (~/Music, ~/Videos, etc).

Naturally, these folders aren't detectable by co-op cloud jellyfin since it can only see the filesystem of the container it's running.

Is there any command I can use to easily mount these folders on the co-op cloud jellyfin container? Also, how can I set up permissions on these folders such that jellyfin can write to them (e.g. to delete media from the GUI, edit and update metadata, create playlist files, etc.)

So I have a bunch of media folders that I'd like to import into a running instance of jellyfin managed through co-op clouds. The folders are in my home folder (`~/Music`, `~/Videos`, etc). Naturally, these folders aren't detectable by co-op cloud jellyfin since it can only see the filesystem of the container it's running. Is there any command I can use to easily mount these folders on the co-op cloud jellyfin container? Also, how can I set up permissions on these folders such that jellyfin can write to them (e.g. to delete media from the GUI, edit and update metadata, create playlist files, etc.)
Owner

Perhaps https://github.com/libfuse/sshfs to mount your local folders into the remote under /var/lib/docker/volumes/...my_jellyfin_volume...? Then for permissions, you can just check the uid/guid of the user inside the jellyfin container and chown the remote folders? Very unsure any of that would work 🙃 Might be worth asking on co-op cloud tech chats on matrix!

Perhaps https://github.com/libfuse/sshfs to mount your local folders into the remote under `/var/lib/docker/volumes/...my_jellyfin_volume...`? Then for permissions, you can just check the uid/guid of the user inside the jellyfin container and chown the remote folders? Very unsure any of that would work 🙃 Might be worth asking on co-op cloud tech chats on matrix!
Author
Owner

Did a co-work with @knoflook today. The volumes can be set up by running abra app config ${your jellyfin domain}, and then editing it like so:

# Set to an existing path on the host, and define a path inside the container
EXTRA_VOLUME=/home/aadil/media:/media/ # replace /home/aadil/media with folder of your  choice
Did a co-work with @knoflook today. The volumes can be set up by running `abra app config ${your jellyfin domain}`, and then editing it like so: ```yaml # Set to an existing path on the host, and define a path inside the container EXTRA_VOLUME=/home/aadil/media:/media/ # replace /home/aadil/media with folder of your choice ```
Author
Owner

Maybe we should add this to the documentation

Maybe we should add this to the documentation
Owner

Maybe we should add this to the documentation

Yes, 💯! Thanks for the experimental testing, and to you and @knoflook for working that out 🙏

> Maybe we should add this to the documentation Yes, 💯! Thanks for the experimental testing, and to you and @knoflook for working that out :pray:
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coop-cloud/jellyfin#1
No description provided.