Merge Subfolders within Virtual Folders

If you have a suggestion for a feature, post it here
Post Reply
iCEQB
Posts: 2
Joined: Sun Feb 16, 2020 5:25 am

Merge Subfolders within Virtual Folders

Post by iCEQB »

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:

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
When I setup a Virtual Folder called "Movies" with all the drives like this...:

Code: Select all

virtual_folders =Movies|C:\\Movies,D:\\Movies,E:\\Movies
...the Virtual Folder shows up like this on my TV:

Code: Select all

Movies
|
|- 720p
|- 720p
|- 720p
|
|- 1080p
|- 1080p
|- 1080p
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 :oops:
User avatar
mik_s
Moderator
Posts: 1108
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Merge Subfolders within Virtual Folders

Post by mik_s »

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

Code: Select all

virtual_folders_file = VirtualFolders.conf
Set up your VirtualFolders.conf like this, note the double slashes (\\) instead of singles.

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"]
	}

]
so it will appear like

Code: Select all

Movies 480p
Movies 720p
Movies 1080p
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.
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.
notesmedia
Posts: 3
Joined: Tue Jun 14, 2022 10:27 am

Re: Merge Subfolders within Virtual Folders

Post by notesmedia »

thank you for this, been trying to do it too lol
hfert34
Posts: 3
Joined: Mon Feb 05, 2024 12:47 pm

Re: Merge Subfolders within Virtual Folders

Post by hfert34 »

notesmedia wrote: Tue Jun 14, 2022 11:03 am thank you for this, been trying to do it too lol
Any success on making this work?
User avatar
mik_s
Moderator
Posts: 1108
Joined: Wed Aug 23, 2017 11:03 pm
Location: UK

Re: Merge Subfolders within Virtual Folders

Post by mik_s »

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.
Post Reply