Version 3.1.2 is released

Announcements about Universal Media Server
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Version 3.1.2 is released

Post by SubJunk »

Samonosuke wrote:The "vfolders" configuration does not seem to be working.
Please see a recent UMS.conf for the descriptions of the virtual_folders_file and virtual_folders entries, which were changed in 3.0.0
Samonosuke
Posts: 6
Joined: Wed Nov 27, 2013 10:02 am

Re: Version 3.1.2 is released

Post by Samonosuke »

Yes, I already did but there is no hint how the file (vfolder.conf) has to look like.
There is only statet:
# The location of your virtual folders config file, which contains a
# json-formatted list of virtual folder instructions.
What means an "virtual folder instruction"? I did not found any information in this forum since 2.x versions.
I already wrote a small test program to check how the "Gson" parser from google does handle this - but I had no luck - even if I had used the following syntax below, but I really do not like to debug UMS to find out how to use this thing...

Code: Select all

[  
 {
      "name":"HD-Movies",
      "files":[{"path":"G:\\HD-Movies_2"},{"path":"I:\\HD_Movies"},{"path":"K:\\HD_Movies"}]
   }
]
OK, something like this worked for me... (for setting it directly within the UMS.conf)

Code: Select all

virtual_folders =HD|G:\\HD-Movies_2,I:\\HD_Movies,K:\\HD_Movies;
But it still does not describe how the vfolders.conf has to look like for 3.x versions.

(I know that the configuration key has changed from "vfolders" to "virtual_folders_file")
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Version 3.1.2 is released

Post by SubJunk »

Try:

Code: Select all

[ 
   {
      "name":"HD-Movies",
      "files":["G:\\HD-Movies_2","I:\\HD_Movies","K:\\HD_Movies"]
   }
]
Samonosuke
Posts: 6
Joined: Wed Nov 27, 2013 10:02 am

Re: Version 3.1.2 is released

Post by Samonosuke »

I already have tried this, but it simply does not work - there is nothing in the debug output...
[
{
"name":"HD-Movies",
"files":["G:\\HD-Movies_2","I:\\HD_Movies","K:\\HD_Movies"]
}
]
and even a simple combination of multiple folders in the configuration does not work e.g.

Code: Select all

virtual_folders = HD|G:\\HD-Movies_2,I:\\HD_Movies;SD|K:\\Movies,G:\\Movies_2;
is not working...

(The UMS server (3.1.2) is running on a Windows Server 2008 with Java(TM) SE Runtime Environment (build 1.7.0_45-b18))
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Version 3.1.2 is released

Post by SubJunk »

Using the external file works for me, I just tested it with that exact syntax, are you sure you have the file in the installation directory and not the profile directory?
Samonosuke
Posts: 6
Joined: Wed Nov 27, 2013 10:02 am

Re: Version 3.1.2 is released

Post by Samonosuke »

I have placed the file beside the UMS.conf which is in the ProgramData folder.
Ok, I will try to place the file next to the executable.
Thanks for now!

[Edit]
Yes, this did the trick! (My used syntax was correct from the beginning on :D )
I guess it would be better to place "vfolders.conf" next to the "UMS.conf", but this is currently not supported.
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Version 3.1.2 is released

Post by SubJunk »

In the next version, the file will be read from the profile folder, plus there will be an example file included.
Post Reply