Version 3.1.2 is released
Re: Version 3.1.2 is released
Please see a recent UMS.conf for the descriptions of the virtual_folders_file and virtual_folders entries, which were changed in 3.0.0Samonosuke wrote:The "vfolders" configuration does not seem to be working.
-
- Posts: 6
- Joined: Wed Nov 27, 2013 10:02 am
Re: Version 3.1.2 is released
Yes, I already did but there is no hint how the file (vfolder.conf) has to look like.
There is only statet:
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...
OK, something like this worked for me... (for setting it directly within the UMS.conf)
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")
There is only statet:
What means an "virtual folder instruction"? I did not found any information in this forum since 2.x versions.# The location of your virtual folders config file, which contains a
# json-formatted list of virtual folder instructions.
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"}]
}
]
Code: Select all
virtual_folders =HD|G:\\HD-Movies_2,I:\\HD_Movies,K:\\HD_Movies;
(I know that the configuration key has changed from "vfolders" to "virtual_folders_file")
Re: Version 3.1.2 is released
Try:
Code: Select all
[
{
"name":"HD-Movies",
"files":["G:\\HD-Movies_2","I:\\HD_Movies","K:\\HD_Movies"]
}
]
-
- Posts: 6
- Joined: Wed Nov 27, 2013 10:02 am
Re: Version 3.1.2 is released
I already have tried this, but it simply does not work - there is nothing in the debug output...
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))
and even a simple combination of multiple folders in the configuration does not work e.g.[
{
"name":"HD-Movies",
"files":["G:\\HD-Movies_2","I:\\HD_Movies","K:\\HD_Movies"]
}
]
Code: Select all
virtual_folders = HD|G:\\HD-Movies_2,I:\\HD_Movies;SD|K:\\Movies,G:\\Movies_2;
(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
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?
-
- Posts: 6
- Joined: Wed Nov 27, 2013 10:02 am
Re: Version 3.1.2 is released
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
)
I guess it would be better to place "vfolders.conf" next to the "UMS.conf", but this is currently not supported.
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

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
In the next version, the file will be read from the profile folder, plus there will be an example file included.