Page 2 of 2

Re: Version 3.1.2 is released

Posted: Wed Nov 27, 2013 10:44 am
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

Re: Version 3.1.2 is released

Posted: Wed Nov 27, 2013 11:12 am
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")

Re: Version 3.1.2 is released

Posted: Wed Nov 27, 2013 11:44 am
by SubJunk
Try:

Code: Select all

[ 
   {
      "name":"HD-Movies",
      "files":["G:\\HD-Movies_2","I:\\HD_Movies","K:\\HD_Movies"]
   }
]

Re: Version 3.1.2 is released

Posted: Wed Nov 27, 2013 11:53 am
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))

Re: Version 3.1.2 is released

Posted: Wed Nov 27, 2013 3:34 pm
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?

Re: Version 3.1.2 is released

Posted: Wed Nov 27, 2013 10:45 pm
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.

Re: Version 3.1.2 is released

Posted: Thu Nov 28, 2013 8:44 am
by SubJunk
In the next version, the file will be read from the profile folder, plus there will be an example file included.