Page 1 of 1

[Solved] How can I add media to be read by UMS [Solved]

Posted: Mon Mar 30, 2020 11:03 am
by szymok
Hi everyone

I recently installed UMS in ubuntu server using this manual https://www.universalmediaserver.com/fo ... php?t=2761 and I have rather stupid question how can I add media to be read by UMS ?

I store all of my media in /dane/Wideo and /dane/Muzyka folders
So I edited the UMS.conf file in that way:

# ---< Shared folders >-------------------------------------------------------

# Shared folders
# --------------
# A comma-separated list of absolute path names.
# If empty, the default media folders on your computer will be chosen. That is:
# On macOS:
# - /user/Movies
# - /user/Music
# - /user/Pictures
# On Windows:
# - /user/Music
# - /user/Pictures
# - /user/Videos
# On Linux:
# - /user
# Default: ""
folders = /dane

# Monitor played status of files
# ------------------------------
# List of folders to be monitored for changes. Folders that aren't monitored
# won't register new media with the New Media folder.
# Default: ""
folders_monitored = /dane

But after restarting ums service it still doesn't read the content of /dane folder
Is there any user created in the system that needs permitions to read /dane folder like in emby media server ?

Please help

Re: How can I add media to be read by UMS

Posted: Mon Mar 30, 2020 11:51 am
by Nadahar
I can't see anything obvious wrong, but make sure that you're editing the correct configuration file (the one being used). When it comes to permissions, the user under which you run UMS must have access - obviously. UMS doesn't create an account itself, this is entirely controlled by you.

You should check the log file to see what the problem is, it should say so if there are permission problems.

Re: How can I add media to be read by UMS

Posted: Mon Mar 30, 2020 12:43 pm
by boss
If dane is a user directory, then should not the path be /home/dane
EG:
folders = /home/dane
folders_monitored = /home/dane

Because:
# Shared folders
# --------------
# A comma-separated list of absolute path names.

Re: How can I add media to be read by UMS

Posted: Mon Mar 30, 2020 7:38 pm
by szymok
Thanks a lot for your help. Problem solved

Edited the file etc/init.d/ums that was created with this tut https://www.universalmediaserver.com/fo ... php?t=2761
and replaced UMS_PROFILE=/etc/ums with UMS_PROFILE=/usr/ums

:)