Merge Subfolders within Virtual Folders
Merge Subfolders within Virtual Folders
Hi,
I didn't want to resurrect a dead thread from 2013 but the OP here is suggesting what I'm after as well:
viewtopic.php?t=1475
It would be great if this feature could be implemented, as I have like 4-5 drives, with the same folder structure, which go like this:
When I setup a Virtual Folder called "Movies" with all the drives like this...:
...the Virtual Folder shows up like this on my TV:
I'm no coder but the OP in the linked thread above seems to have found the cause(?)/solution to this.
So the addition of a toggle in the config, to signal the server to merge the same sub directories across multiple sources would be great!
I hope this is not a big request
I didn't want to resurrect a dead thread from 2013 but the OP here is suggesting what I'm after as well:
viewtopic.php?t=1475
It would be great if this feature could be implemented, as I have like 4-5 drives, with the same folder structure, which go like this:
Code: Select all
Drive C:
|
|-- Movies
|-- 720p
| |- Multiple Movie Subfolders
|
|-- 1080p
|- Multiple Movie Subfolders
Drive D:
|
|-- Movies
|-- 720p
| |- Multiple Movie Subfolders
|
|-- 1080p
|- Multiple Movie Subfolders
Drive E:
|
|-- Movies
|-- 720p
| |- Multiple Movie Subfolders
|
|-- 1080p
|- Multiple Movie Subfolders
Code: Select all
virtual_folders =Movies|C:\\Movies,D:\\Movies,E:\\Movies
Code: Select all
Movies
|
|- 720p
|- 720p
|- 720p
|
|- 1080p
|- 1080p
|- 1080p
So the addition of a toggle in the config, to signal the server to merge the same sub directories across multiple sources would be great!
I hope this is not a big request

Re: Merge Subfolders within Virtual Folders
Just tested it out using the virtualfolders.conf but the sub directories are not merged too. Best way I can see round this is to set up virtual folders for each of the resolutions.
You need to set up a VirtualFolders.conf in C:\ProgramData\UMS and edit UMS.conf to set
Set up your VirtualFolders.conf like this, note the double slashes (\\) instead of singles.
so it will appear like
I know it is not quite what you want but is close enough. Maybe you can make a request to add that feature on GitHub by opening an issue.
I'm no coder either but it should be easy enough to merge subfolders if they are named the same. If the code handling virtual folders has not changed then that solution posted in the other topic could be added.
You need to set up a VirtualFolders.conf in C:\ProgramData\UMS and edit UMS.conf to set
Code: Select all
virtual_folders_file = VirtualFolders.conf
Code: Select all
[
{
"name":"Movies 480p",
"addToMediaLibrary":"true",
"files":"C:\\Movies\480p","D:\\Movies\\480p","E:\\Movies\\480p"]
},
{
"name":"Movies 720p",
"addToMediaLibrary":"true",
"files":["C:\\Movies\720p","D:\\Movies\\720p","E:\\Movies\\720p"]
},
{
"name":"Movies 1080p",
"addToMediaLibrary":"true",
"files":"C:\\Movies\1080p","D:\\Movies\\1080p","E:\\Movies\\1080p"]
}
]
Code: Select all
Movies 480p
Movies 720p
Movies 1080p
I'm no coder either but it should be easy enough to merge subfolders if they are named the same. If the code handling virtual folders has not changed then that solution posted in the other topic could be added.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.
-
- Posts: 3
- Joined: Tue Jun 14, 2022 10:27 am
Re: Merge Subfolders within Virtual Folders
thank you for this, been trying to do it too lol
Re: Merge Subfolders within Virtual Folders
Any success on making this work?
Re: Merge Subfolders within Virtual Folders
Should be easier to do in "shared content" in web settings now.
Logs are important for us to help, Please follow This Link before asking for support. Just a forum cleaner, Will help if I can but no expert.